Date: Saturday, May 23, 2020 @ 03:10:01 Author: felixonmars Revision: 631809
archrelease: copy trunk to community-staging-x86_64 Added: haskell-hashable/repos/community-staging-x86_64/ haskell-hashable/repos/community-staging-x86_64/PKGBUILD (from rev 631808, haskell-hashable/trunk/PKGBUILD) ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Copied: haskell-hashable/repos/community-staging-x86_64/PKGBUILD (from rev 631808, haskell-hashable/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-05-23 03:10:01 UTC (rev 631809) @@ -0,0 +1,50 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Thomas Dziedzic <gos...@gmail.com> + +_hkgname=hashable +pkgname=haskell-hashable +pkgver=1.3.0.0 +pkgrel=5 +pkgdesc="Mutable hash tables in the ST monad" +url="https://hackage.haskell.org/package/${_hkgname}" +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'sh') +makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-random' 'haskell-test-framework' + 'haskell-test-framework-hunit' 'haskell-test-framework-quickcheck2') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('2ba9b0657ddc6faf8b8be88e79d3c49503dfee3a446fc16bdc851f357afef1b92b443d1582d462cea859e37a16b46ec762b1dcf613458c5a15f800a8fccdb0ac') + +prepare() { + cd $_hkgname-$pkgver + sed -i 's/< *4.14/<5/' $_hkgname.cabal +} + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -f-examples + runhaskell Setup build $MAKEFLAGS + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +package() { + cd $_hkgname-$pkgver + + install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh + install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh + runhaskell Setup copy --destdir="$pkgdir" + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}