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

Felix Yan felixonmars at archlinux.org
Thu Apr 23 10:59:03 UTC 2020


    Date: Thursday, April 23, 2020 @ 10:59:02
  Author: felixonmars
Revision: 618017

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

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

Copied: haskell-entropy/repos/community-staging-x86_64/PKGBUILD (from rev 618016, haskell-entropy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-23 10:59:02 UTC (rev 618017)
@@ -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.6
+pkgrel=2
+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=('201a75efe210be5728a1c94ba9ec62514b96c388b6791d9301b34d2fce0208a9fa4ef25965c7840d052fd6221f15a1bec196a6eb209e6d03c3e1f971161df1b1')
+
+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