diff --git a/srcpkgs/cabal-install/template b/srcpkgs/cabal-install/template index 7e64ee0ccd..26a48e6922 100644 --- a/srcpkgs/cabal-install/template +++ b/srcpkgs/cabal-install/template @@ -1,22 +1,24 @@ # Template file for 'cabal-install' pkgname=cabal-install -version=1.24.0.0 +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 " -license="custom" +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=d840ecfd0a95a96e956b57fb2f3e9c81d9fc160e1fd0ea350b0d37d169d9e87e +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 diff --git a/srcpkgs/cabal-install/update b/srcpkgs/cabal-install/update new file mode 100644 index 0000000000..f338202560 --- /dev/null +++ b/srcpkgs/cabal-install/update @@ -0,0 +1,2 @@ +site='http://www.stackage.org/lts' +pattern='cabal-install-\K[\d.]+'