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

Felix Yan felixonmars at archlinux.org
Mon Feb 15 05:31:56 UTC 2021


    Date: Monday, February 15, 2021 @ 05:31:55
  Author: felixonmars
Revision: 860754

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-cryptohash-sha256/repos/community-staging-x86_64/
  haskell-cryptohash-sha256/repos/community-staging-x86_64/PKGBUILD
    (from rev 860753, haskell-cryptohash-sha256/trunk/PKGBUILD)

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

Copied: haskell-cryptohash-sha256/repos/community-staging-x86_64/PKGBUILD (from rev 860753, haskell-cryptohash-sha256/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-02-15 05:31:55 UTC (rev 860754)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=cryptohash-sha256
+pkgname=haskell-cryptohash-sha256
+pkgver=0.11.102.0
+pkgrel=12
+pkgdesc="Fast, pure and practical SHA-256 implementation"
+url="https://github.com/hvr/cryptohash-sha256"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-base16-bytestring')
+makedepends=('ghc' 'uusi' 'haskell-sha' 'haskell-tasty' 'haskell-tasty-hunit'
+             'haskell-tasty-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('d55663f24c9c24370c85b2cd22a8aceff6c81de5ee278bc85ebef35868310a0df02dedf8247c201d0c086172845def4a910650756ce225385f2e5801ac1019c7')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    uusi -u tasty $_hkgname.cabal
+}
+
+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 \
+            -fexe
+    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
+}
+
+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
+
+    mv "$pkgdir"/usr/bin/{,hs-}sha256sum
+}



More information about the arch-commits mailing list