Date: Tuesday, October 26, 2021 @ 14:48:02 Author: felixonmars Revision: 1034075
archrelease: copy trunk to community-staging-x86_64 Added: haskell-hashtables/repos/community-staging-x86_64/ haskell-hashtables/repos/community-staging-x86_64/PKGBUILD (from rev 1034074, haskell-hashtables/trunk/PKGBUILD) ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Copied: haskell-hashtables/repos/community-staging-x86_64/PKGBUILD (from rev 1034074, haskell-hashtables/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-10-26 14:48:02 UTC (rev 1034075) @@ -0,0 +1,45 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=hashtables +pkgname=haskell-hashtables +pkgver=1.2.4.1 +pkgrel=86 +pkgdesc="Mutable hash tables in the ST monad" +url="https://hackage.haskell.org/package/${_hkgname}" +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'sh' 'haskell-hashable' 'haskell-primitive' 'haskell-vector') +makedepends=('ghc' 'haskell-mwc-random' 'haskell-quickcheck' 'haskell-hunit' + 'haskell-test-framework' 'haskell-test-framework-quickcheck2' + 'haskell-test-framework-hunit') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('e88fb8f9c8a51be31e5d07ca1fef3d1a05a347942878f84a500d8c224b1118a2be97f9a947f17834a8331f296f302eafeef34d1f151360361675ecf5204b38f6') + +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 --ghc-option=-fllvm + 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 --show-details=direct +} + +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 +}