void-packages/srcpkgs/cabal-install/template

24 lines
726 B
Bash

# Template file for 'cabal-install'
pkgname=cabal-install
version=1.24.0.0
revision=1
hostmakedepends="ghc curl"
makedepends="gmp-devel libffi-devel zlib-devel"
depends="ghc"
short_desc="Command-line interface for Cabal and Hackage"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://hackage.haskell.org/package/cabal-install"
distfiles="http://hackage.haskell.org/packages/archive/$pkgname/$version/$pkgname-$version.tar.gz"
checksum=d840ecfd0a95a96e956b57fb2f3e9c81d9fc160e1fd0ea350b0d37d169d9e87e
nopie=yes # network-2.6.0.2 build fails with a relocation
do_build() {
PREFIX=$PWD/build sh bootstrap.sh --user --no-doc
}
do_install() {
vbin build/bin/cabal
vlicense LICENSE
}