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

Felix Yan felixonmars at gemini.archlinux.org
Mon Jan 10 17:59:17 UTC 2022


    Date: Monday, January 10, 2022 @ 17:59:17
  Author: felixonmars
Revision: 1099663

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-sha/repos/community-staging-x86_64/PKGBUILD (from rev 1099662, haskell-sha/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-01-10 17:59:17 UTC (rev 1099663)
@@ -0,0 +1,38 @@
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+# Contributor: Lex Black <autumn-wind at web dot de>
+# Contributor: Arch Haskell Team <>
+
+pkgname=haskell-sha
+pkgver=1.6.4.4
+pkgrel=19
+pkgdesc="Implementations of the SHA suite of message digest functions"
+url="https://hackage.haskell.org/package/SHA"
+license=('BSD3')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/SHA/${pkgver}/SHA-${pkgver}.tar.gz")
+sha512sums=('77a525cb9ef45a410595a2f9c11a848a3aaeb6c7cb9b0ff11395326a259c0bea0e75689e3c7fa410e25be7d4480887830e11c891801f03c439b6ae9f55e5c125')
+
+build() {
+    cd "${srcdir}/SHA-${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 --ghc-option=-fllvm
+    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 "${srcdir}/SHA-${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