[arch-commits] Commit in haskell-src-exts-simple/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Mon Aug 29 22:35:28 UTC 2022


    Date: Monday, August 29, 2022 @ 22:35:27
  Author: felixonmars
Revision: 1286615

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-src-exts-simple/repos/community-staging-x86_64/
  haskell-src-exts-simple/repos/community-staging-x86_64/PKGBUILD
    (from rev 1286614, haskell-src-exts-simple/trunk/PKGBUILD)

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

Copied: haskell-src-exts-simple/repos/community-staging-x86_64/PKGBUILD (from rev 1286614, haskell-src-exts-simple/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-08-29 22:35:27 UTC (rev 1286615)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=haskell-src-exts-simple
+pkgver=1.23.0.0
+pkgrel=5
+pkgdesc="A simplified view on the haskell-src-exts AST"
+url="https://github.com/int-e/haskell-src-exts-simple"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-src-exts')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('f57029fa5b81ddd604027e909739dc85c3bf819592dc1c95d3a9cb3aa392cdc9')
+
+build() {
+  cd $pkgname-$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=-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 $pkgname-$pkgver
+  runhaskell Setup test --show-details=direct
+}
+
+package() {
+  cd $pkgname-$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