[arch-commits] Commit in haskell-sha/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Apr 23 15:02:32 UTC 2020
Date: Thursday, April 23, 2020 @ 15:02:31
Author: felixonmars
Revision: 618249
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 618248, haskell-sha/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: haskell-sha/repos/community-staging-x86_64/PKGBUILD (from rev 618248, haskell-sha/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-04-23 15:02:31 UTC (rev 618249)
@@ -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=12
+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
+ 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