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

Felix Yan felixonmars at archlinux.org
Fri Feb 14 21:32:12 UTC 2020


    Date: Friday, February 14, 2020 @ 21:32:11
  Author: felixonmars
Revision: 571268

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-cryptohash-md5/repos/community-staging-x86_64/PKGBUILD (from rev 571267, haskell-cryptohash-md5/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-02-14 21:32:11 UTC (rev 571268)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=cryptohash-md5
+pkgname=haskell-cryptohash-md5
+pkgver=0.11.100.1
+pkgrel=14
+pkgdesc="Fast, pure and practical MD5 implementation"
+url="https://github.com/hvr/cryptohash-md5"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('f2efb197005ed5f12a7c2be490a64a83186cacb34eaedec6cbd76e52c30221733da1d31201c5209538226508db760fd9eed0afc8d72643e1509b32c7287cb12e')
+
+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
+    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