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

Felix Yan felixonmars at archlinux.org
Wed Nov 14 21:22:35 UTC 2018


    Date: Wednesday, November 14, 2018 @ 21:22:34
  Author: felixonmars
Revision: 407496

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-entropy/repos/community-staging-x86_64/PKGBUILD (from rev 407495, haskell-entropy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-14 21:22:34 UTC (rev 407496)
@@ -0,0 +1,37 @@
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+# Maintainer: Daniel Nagy <danielnagy at gmx de>
+
+pkgname=haskell-entropy
+pkgver=0.4.1.4
+pkgrel=1
+pkgdesc="A mostly platform independent (not GHCJS) method to obtain cryptographically strong entropy"
+url="https://hackage.haskell.org/package/entropy"
+license=('custom:BSD3')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/entropy/${pkgver}/entropy-${pkgver}.tar.gz)
+sha512sums=('714779479b4641c3af1102469db60a8dc95d311efab6c40c294391d88d1bab623c837224f792bd68f8d11ff69636042d9facbae145415cf00cc4d1bdc8fc08d5')
+
+build() {
+    cd "${srcdir}/entropy-${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
+    runhaskell Setup build
+    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 "${srcdir}/entropy-${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