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

Felix Yan felixonmars at archlinux.org
Sat Sep 7 13:05:47 UTC 2019


    Date: Saturday, September 7, 2019 @ 13:05:47
  Author: felixonmars
Revision: 508382

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 508381, haskell-entropy/trunk/PKGBUILD)

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

Copied: haskell-entropy/repos/community-staging-x86_64/PKGBUILD (from rev 508381, haskell-entropy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-09-07 13:05:47 UTC (rev 508382)
@@ -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.5
+pkgrel=1
+pkgdesc="A mostly platform independent (not GHCJS) method to obtain cryptographically strong entropy"
+url="https://hackage.haskell.org/package/entropy"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/entropy/${pkgver}/entropy-${pkgver}.tar.gz)
+sha512sums=('a212c47242ed5b72126f78880931c8af15b492cb724ed158a63b61d5d278f85a2be3adcc3ffbc8ac2254a3caf6e8029ce3e43cd7c830895b21268045d87b3be6')
+
+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