[arch-commits] Commit in haskell-chimera/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Dec 16 07:33:35 UTC 2021
Date: Thursday, December 16, 2021 @ 07:33:35
Author: felixonmars
Revision: 1073965
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-chimera/repos/community-staging-x86_64/
haskell-chimera/repos/community-staging-x86_64/PKGBUILD
(from rev 1073964, haskell-chimera/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: haskell-chimera/repos/community-staging-x86_64/PKGBUILD (from rev 1073964, haskell-chimera/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-16 07:33:35 UTC (rev 1073965)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=chimera
+pkgname=haskell-chimera
+pkgver=0.3.2.0
+pkgrel=20
+pkgdesc="Lazy infinite streams with O(1) indexing and applications for memoization"
+url="https://github.com/Bodigrim/chimera#readme"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-adjunctions' 'haskell-distributive' 'haskell-vector')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-tasty' 'haskell-tasty-hunit'
+ 'haskell-tasty-quickcheck' 'haskell-tasty-smallcheck')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha512sums=('51dbb3b949615945ef9b4731e478a1c88e13d30dad7162c9d877752b673f98bbeb845d38e4dda685fba5c948fb8e04a9cef3b122eb56b3bce9dfe546c9a8a73c')
+
+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 --ghc-option=-fllvm \
+ --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+ --ghc-option='-pie'
+
+ 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 --show-details=direct
+}
+
+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 -t "$pkgdir"/usr/share/licenses/$pkgname/
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list