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

Felix Yan felixonmars at archlinux.org
Thu May 13 13:13:59 UTC 2021


    Date: Thursday, May 13, 2021 @ 13:13:59
  Author: felixonmars
Revision: 933226

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-resource-pool/repos/community-staging-x86_64/
  haskell-resource-pool/repos/community-staging-x86_64/PKGBUILD
    (from rev 933225, haskell-resource-pool/trunk/PKGBUILD)

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

Copied: haskell-resource-pool/repos/community-staging-x86_64/PKGBUILD (from rev 933225, haskell-resource-pool/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-05-13 13:13:59 UTC (rev 933226)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=resource-pool
+pkgname=haskell-resource-pool
+pkgver=0.2.3.2
+pkgrel=179
+pkgdesc="A high-performance striped resource pooling implementation"
+url="https://github.com/bos/pool"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-hashable" "haskell-monad-control"
+         "haskell-transformers-base" "haskell-vector")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('42b0bb6dea35c08884f65604acc0dd93707b8d4de780c584877e92fbfe534d4f754282e9c9f7257c203f1152d85ac8170f84ee9a95573343d02a774006c4118b')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -f-developer
+    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
+}
+
+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