hasufell-repository/packages/dev-haskell/ghcup/ghcup-0.1.10.exheres-0

36 lines
907 B
Bash

# Copyright 2020 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
SUMMARY="Painless installation of GHC toolchain"
HOMEPAGE="https://www.haskell.org/ghcup/ https://gitlab.haskell.org/haskell/ghcup-hs"
DOWNLOADS="
platform:amd64? ( https://downloads.haskell.org/~ghcup/${PV}/x86_64-linux-ghcup-${PV} )
platform:x86? ( https://downloads.haskell.org/~ghcup/${PV}/i386-linux-ghcup-${PV} )
"
LICENCES="LGPL-3"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS="
platform: amd64 x86
"
DEPENDENCIES="
recommendation:
net-misc/curl [[ description = [ GHCup uses curl by default for downloads ] ]]
suggestion:
net-misc/wget [[ description = [ GHCup can use wget instead of curl ] ]]
"
BUGS_TO="hasufell@posteo.de"
WORK=${WORKBASE}
src_unpack() {
edo cp "${FETCHEDDIR}/${ARCHIVES}" ghcup
}
src_install() {
dobin ghcup
}