[arch-commits] Commit in haskell-entropy/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed May 16 19:48:15 UTC 2018
Date: Wednesday, May 16, 2018 @ 19:48:14
Author: felixonmars
Revision: 323175
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 323174, haskell-entropy/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: haskell-entropy/repos/community-staging-x86_64/PKGBUILD (from rev 323174, haskell-entropy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-16 19:48:14 UTC (rev 323175)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+# Maintainer: Daniel Nagy <danielnagy at gmx de>
+
+pkgname=haskell-entropy
+pkgver=0.3.8
+pkgrel=5
+pkgdesc="A platform independent 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=('ad33a68c1f5331da68cec35f8c6bfd6ee449f95c0127e602081581c0cc68e1bf08463aebd65286229959a76cafc84c672f9a8d0ec759cad3100339b6f612d7b7')
+
+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