# Contributor: Steeve Chailloux # Maintainer: Mitch Tishmack pkgname=cabal pkgver=2.4.1.0 pkgrel=0 pkgdesc="The Haskell Cabal" url="http://haskell.org" arch="x86_64" license="BSD-3-Clause" depends="gmp zlib" makedepends="ghc gmp-dev libffi-dev zlib-dev binutils-gold chrpath" source=" cabal-0001-force-ld.gold.patch https://hackage.haskell.org/package/cabal-install-$pkgver/cabal-install-$pkgver.tar.gz " builddir="$srcdir/$pkgname-install-$pkgver" build() { cd "$builddir" # Note: we don't want to build profiling or shared libraries, that is why # EXTRA_CONFIGURE_OPTS is set env HOME="$builddir" EXTRA_CONFIGURE_OPTS="" ./bootstrap.sh --jobs --no-doc } package() { cd "$builddir" install -m 755 -D dist/build/cabal/cabal "$pkgdir/usr/bin/cabal" chrpath -d "$pkgdir/usr/bin/cabal" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } sha512sums="735a1aa9084d7eb7297076587cf2896af2951d4a2ecc20c5a6758a91c3751f5c212b65668befc25cfbc273633041543bda3da0fe9cee59795eeb3f40b3fb4922 cabal-0001-force-ld.gold.patch 4c493448724fd3c073dd61133f4c8ae757ae97fb4c3e2b4db23dcb99894a8e790ec71d0d1fb6f58702f347143261092c0fc556741b7d5fcb192edd308e8182f4 cabal-install-2.4.1.0.tar.gz"