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

Felix Yan felixonmars at archlinux.org
Mon Aug 24 18:12:44 UTC 2020


    Date: Monday, August 24, 2020 @ 18:12:44
  Author: felixonmars
Revision: 687652

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 687651, haskell-abstract-deque/trunk/PKGBUILD)

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

Copied: haskell-abstract-deque/repos/community-staging-x86_64/PKGBUILD (from rev 687651, haskell-abstract-deque/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-08-24 18:12:44 UTC (rev 687652)
@@ -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=19
+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 \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -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