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

Felix Yan felixonmars at gemini.archlinux.org
Fri Jan 7 19:48:11 UTC 2022


    Date: Friday, January 7, 2022 @ 19:48:11
  Author: felixonmars
Revision: 1096205

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-resourcet/repos/community-staging-x86_64/
  haskell-resourcet/repos/community-staging-x86_64/PKGBUILD
    (from rev 1096204, haskell-resourcet/trunk/PKGBUILD)

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

Copied: haskell-resourcet/repos/community-staging-x86_64/PKGBUILD (from rev 1096204, haskell-resourcet/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-01-07 19:48:11 UTC (rev 1096205)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=resourcet
+pkgname=haskell-resourcet
+pkgver=1.2.4.3
+pkgrel=23
+pkgdesc="Deterministic allocation and freeing of scarce resources."
+url="https://github.com/snoyberg/conduit"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-primitive' 'haskell-unliftio-core')
+makedepends=('ghc' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('75a3b4885d9fc8273c988f830c30fc4458efd938d89dba5ae34dbe9256c9a5c6ce42beb930cfa59666e87c97bf4c616a4053ef70e917259934e15bd0fee61bdd')
+
+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
+}



More information about the arch-commits mailing list