[arch-commits] Commit in haskell-libbf/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Feb 17 22:05:18 UTC 2021
Date: Wednesday, February 17, 2021 @ 22:05:18
Author: felixonmars
Revision: 862866
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-libbf/repos/community-staging-x86_64/
haskell-libbf/repos/community-staging-x86_64/PKGBUILD
(from rev 862864, haskell-libbf/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: haskell-libbf/repos/community-staging-x86_64/PKGBUILD (from rev 862864, haskell-libbf/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-02-17 22:05:18 UTC (rev 862866)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=libBF
+pkgname=haskell-libbf
+pkgver=0.6.1
+pkgrel=2
+pkgdesc="A binding to the libBF library"
+url="https://github.com/GaloisInc/libBF-hs"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'libbf' 'haskell-hashable')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('52ad2e65d023dee9c113c0ee04cf576ef94dae5278a76cf3f5a7cc8e17b304a7437b420a7dcfbebb30921243a584c70e7d8bf3bb139c22226c18682867b3ee06')
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -fsystem-libbf
+ 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
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
+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