void-packages/srcpkgs/cabal-install/template

24 lines
722 B
Bash

# Template file for 'cabal-install'
pkgname=cabal-install
version=2.4.1.0
revision=3
hostmakedepends="ghc curl"
makedepends="gmp-devel libffi-devel zlib-devel"
depends="ghc"
short_desc="Command-line interface for Cabal and Hackage"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
homepage="https://hackage.haskell.org/package/cabal-install"
distfiles="https://hackage.haskell.org/packages/archive/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
checksum=69bcb2b54a064982412e1587c3c5c1b4fada3344b41b568aab25730034cb21ad
nopie_files="/usr/bin/cabal"
do_build() {
PREFIX=$PWD/build sh bootstrap.sh --user
}
do_install() {
vbin build/bin/cabal
vman build/share/man/man1/cabal.1
vlicense LICENSE
}