[arch-commits] Commit in haskell-crypto-api-tests/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Aug 10 04:54:46 UTC 2018


    Date: Friday, August 10, 2018 @ 04:54:46
  Author: felixonmars
Revision: 370686

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-crypto-api-tests/repos/community-staging-x86_64/
  haskell-crypto-api-tests/repos/community-staging-x86_64/PKGBUILD
    (from rev 370685, haskell-crypto-api-tests/trunk/PKGBUILD)

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

Copied: haskell-crypto-api-tests/repos/community-staging-x86_64/PKGBUILD (from rev 370685, haskell-crypto-api-tests/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-08-10 04:54:46 UTC (rev 370686)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=crypto-api-tests
+pkgname=haskell-crypto-api-tests
+pkgver=0.3
+pkgrel=8
+pkgdesc="A test framework and KATs for cryptographic operations."
+url="http://trac.haskell.org/crypto-api/wiki"
+license=('custom:BSD3')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-test-framework-quickcheck2' 'haskell-crypto-api' 'haskell-cereal'
+         'haskell-test-framework' 'haskell-test-framework-hunit' 'haskell-hunit'
+         'haskell-quickcheck')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('4d9dfd52dc67279a712bd444972faa6650d987c8f65fb41178e5c6523a7260c0e2df8f44bc511ffa217b6d71c5ec41ab11a0466a326c9133f7e20c01c37404d5')
+
+build() {
+    cd $_hkgname-$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 $_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