[arch-commits] Commit in (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Sat Aug 20 16:59:31 UTC 2022


    Date: Saturday, August 20, 2022 @ 16:59:31
  Author: felixonmars
Revision: 1271085

addpkg: haskell-lambdahack 0.11.0.0-1

Added:
  haskell-lambdahack/
  haskell-lambdahack/repos/
  haskell-lambdahack/trunk/
  haskell-lambdahack/trunk/PKGBUILD

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

Added: haskell-lambdahack/trunk/PKGBUILD
===================================================================
--- haskell-lambdahack/trunk/PKGBUILD	                        (rev 0)
+++ haskell-lambdahack/trunk/PKGBUILD	2022-08-20 16:59:31 UTC (rev 1271085)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=LambdaHack
+pkgname=haskell-lambdahack
+pkgver=0.11.0.0
+pkgrel=1
+pkgdesc="A game engine library for tactical squad ASCII roguelike dungeon crawlers"
+url="https://lambdahack.github.io"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-ansi-terminal' 'haskell-assert-failure'
+         'haskell-async' 'haskell-base-compat' 'haskell-enummapset' 'haskell-file-embed'
+         'haskell-hashable' 'haskell-hsini' 'haskell-keys' 'haskell-miniutter'
+         'haskell-open-browser' 'haskell-optparse-applicative' 'haskell-pretty-show'
+         'haskell-primitive' 'haskell-sdl2' 'haskell-sdl2-ttf' 'haskell-splitmix'
+         'haskell-th-lift-instances' 'haskell-unordered-containers' 'haskell-vector'
+         'haskell-vector-binary-instances' 'haskell-witch' 'haskell-zlib')
+makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha256sums=('5526cddc753d86283c94f3072c5f5675af357a3b66c039265df55306fa62b5a5')
+
+build() {
+  cd $_hkgname-$pkgver
+
+  runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+    --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=haskell-lambdahack --enable-tests \
+    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+    --ghc-option='-pie' \
+    -f-jsaddle -frelease -fsupportnodejs -fwith_costly_optimizations -f-with_expensive_assertions
+
+  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"
+  install -D -m644 COPYLEFT -t "$pkgdir"/usr/share/licenses/$pkgname/
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/COPYLEFT
+}



More information about the arch-commits mailing list