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

Felix Yan felixonmars at archlinux.org
Sun Apr 25 02:30:58 UTC 2021


    Date: Sunday, April 25, 2021 @ 02:30:57
  Author: felixonmars
Revision: 923784

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-cryptonite/repos/community-staging-x86_64/PKGBUILD (from rev 923783, haskell-cryptonite/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-04-25 02:30:57 UTC (rev 923784)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=cryptonite
+pkgname=haskell-cryptonite
+pkgver=0.28
+pkgrel=28
+pkgdesc="Cryptography Primitives sink"
+url="https://github.com/vincenthz/cryptonite"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-basement' 'haskell-memory')
+makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-kat'
+             'haskell-tasty-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('c1e485522938f94f15910a5b5a4a3e4dfecbb62df463c80faaa51e9d883c2612611b8486bd0fd13660766cfb6d62d366fbbd03df2db874d525514aae247b6242')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -fsupport_deepseq -finteger-gmp -f-support_pclmuldq -fsupport_rdrand \
+            -fsupport_aesni -f-old_toolchain_inliner -f-check_alignment -fsupport_sse
+    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
+}
+
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test --show-details=direct
+}
+
+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