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

Felix Yan felixonmars at gemini.archlinux.org
Mon Aug 29 20:38:28 UTC 2022


    Date: Monday, August 29, 2022 @ 20:38:28
  Author: felixonmars
Revision: 1285943

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-abstract-deque/repos/community-staging-x86_64/
  haskell-abstract-deque/repos/community-staging-x86_64/PKGBUILD
    (from rev 1285942, haskell-abstract-deque/trunk/PKGBUILD)

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

Copied: haskell-abstract-deque/repos/community-staging-x86_64/PKGBUILD (from rev 1285942, haskell-abstract-deque/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-08-29 20:38:28 UTC (rev 1285943)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=abstract-deque
+pkgname=haskell-abstract-deque
+pkgver=0.3
+pkgrel=164
+pkgdesc="Abstract, parameterized interface to mutable Deques."
+url="https://github.com/rrnewton/haskell-lockfree/wiki"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-random")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('9293a366918f54458ffe13f6737bab2bee961b730732eff563d900b451bf5f7dde30276c9406bfc5c0ea64104afb70db3588b13d478bf9c60842dad906195f7a')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \
+            -f-usecas
+    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