[arch-commits] Commit in haskell-hashtables/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Sep 8 22:33:19 UTC 2020


    Date: Tuesday, September 8, 2020 @ 22:33:19
  Author: felixonmars
Revision: 701403

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 701402, haskell-hashtables/trunk/PKGBUILD)

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Copied: haskell-hashtables/repos/community-staging-x86_64/PKGBUILD (from rev 701402, haskell-hashtables/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-09-08 22:33:19 UTC (rev 701403)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=hashtables
+pkgname=haskell-hashtables
+pkgver=1.2.4.0
+pkgrel=1
+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=('4b4aa28d5d515252f1c8629a094b752bc35a0172221bb81b7a770e1c51db44a481c11b6f9cbc00dcb042e440b379e1e6208e1990d1abeca3ae237a8d7e18bb83')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/< *0.14/<1/;s/< *1.3/<2/' $_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
+    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
+}



More information about the arch-commits mailing list