[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at gemini.archlinux.org
Sun Aug 21 08:07:51 UTC 2022
Date: Sunday, August 21, 2022 @ 08:07:50
Author: felixonmars
Revision: 1271853
addpkg: haskell-data-memocombinators 0.5.1-1
Added:
haskell-data-memocombinators/
haskell-data-memocombinators/repos/
haskell-data-memocombinators/trunk/
haskell-data-memocombinators/trunk/PKGBUILD
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Added: haskell-data-memocombinators/trunk/PKGBUILD
===================================================================
--- haskell-data-memocombinators/trunk/PKGBUILD (rev 0)
+++ haskell-data-memocombinators/trunk/PKGBUILD 2022-08-21 08:07:50 UTC (rev 1271853)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=data-memocombinators
+pkgname=haskell-data-memocombinators
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="Combinators for building memo tables."
+url="http://github.com/luqui/data-memocombinators"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-data-inttrie')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha256sums=('b4341d2024b84a43f92edc39f6d6766bf4f0f00a40fd834b9f6f8e987b606ed7')
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+ --ghc-option='-pie'
+
+ 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
+}
+
+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"
+}
More information about the arch-commits
mailing list