void-packages/srcpkgs/cabal-install/template

25 lines
772 B
Bash

# Template file for 'cabal-install'
pkgname=cabal-install
version=3.0.0.0
revision=1
hostmakedepends="ghc curl tar which"
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=a432a7853afe96c0fd80f434bd80274601331d8c46b628cd19a0d8e96212aaf1
nopie_files="/usr/bin/cabal"
do_build() {
vsed -e 's/< *4/<5/' -i $pkgname.cabal
PREFIX=$PWD/build sh bootstrap.sh --user
}
do_install() {
vbin build/bin/cabal
vman build/share/man/man1/cabal.1
vlicense LICENSE
}