# Contributor: Steeve Chailloux # Maintainer: Mitch Tishmack pkgname=cabal pkgver=3.0.0.0 pkgrel=0 pkgdesc="The Haskell Cabal" url="https://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 0b15313fc11bc6b6018e01b6a3a65242306977c16ce9333ea1191c1ce0020b180451235a7a65b47bc01791e05d1b246bf9d573fc7e981a46fcfc7da0fed04cca cabal-install-3.0.0.0.tar.gz"