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

Felix Yan felixonmars at archlinux.org
Thu Jun 17 23:07:06 UTC 2021


    Date: Thursday, June 17, 2021 @ 23:07:06
  Author: felixonmars
Revision: 964956

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-cryptohash-sha1/repos/community-staging-x86_64/PKGBUILD (from rev 964955, haskell-cryptohash-sha1/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-06-17 23:07:06 UTC (rev 964956)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=cryptohash-sha1
+pkgname=haskell-cryptohash-sha1
+pkgver=0.11.100.1
+pkgrel=22
+pkgdesc="Fast, pure and practical SHA-1 implementation"
+url="https://github.com/hvr/cryptohash-sha1"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('e3528c70501ffaf4649adc0fe120a0b333329761fa66505083269afa67828c16695fd91567035adef0b77915df47a6bcc99d2d90f0ecb26eda583829261cb1bc')
+
+prepare() {
+    sed -i 's/base             >= 4.5   && < 4.10/base             >= 4.5/' $_hkgname-$pkgver/$_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 \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+    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
+}
+
+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