25 lines
832 B
Bash
25 lines
832 B
Bash
# Template file for 'cabal-install'
|
|
pkgname=cabal-install
|
|
version=1.24.0.1
|
|
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="3-clause-BSD"
|
|
homepage="http://hackage.haskell.org/package/cabal-install"
|
|
distfiles="http://hackage.haskell.org/packages/archive/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=09f5fd8a2aa7f9565800a711a133f8142d36d59b38f59da09c25045b83ee9ecc
|
|
nopie=yes # network-2.6.0.2 build fails with a relocation
|
|
|
|
post_extract() {
|
|
sed -i '/CABAL_VER_REGEXP=/s/0-9/1-9/' bootstrap.sh # upstream 2627edf1
|
|
}
|
|
do_build() {
|
|
PREFIX=$PWD/build sh bootstrap.sh --user --no-doc
|
|
}
|
|
do_install() {
|
|
vbin build/bin/cabal
|
|
vlicense LICENSE
|
|
}
|