[arch-commits] Commit in haskell-sha/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Jun 7 00:03:53 UTC 2021
Date: Monday, June 7, 2021 @ 00:03:53
Author: felixonmars
Revision: 956721
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 956720, haskell-sha/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: haskell-sha/repos/community-staging-x86_64/PKGBUILD (from rev 956720, haskell-sha/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-06-07 00:03:53 UTC (rev 956721)
@@ -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=17
+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
+ 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