[arch-commits] Commit in haskell-data-memocombinators/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Sun Aug 21 08:13:04 UTC 2022


    Date: Sunday, August 21, 2022 @ 08:13:04
  Author: felixonmars
Revision: 1271878

archrelease: copy trunk to community-x86_64

Added:
  haskell-data-memocombinators/repos/community-x86_64/
  haskell-data-memocombinators/repos/community-x86_64/PKGBUILD
    (from rev 1271877, haskell-data-memocombinators/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: haskell-data-memocombinators/repos/community-x86_64/PKGBUILD (from rev 1271877, haskell-data-memocombinators/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-08-21 08:13:04 UTC (rev 1271878)
@@ -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