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

Felix Yan felixonmars at archlinux.org
Tue Feb 11 00:17:49 UTC 2020


    Date: Tuesday, February 11, 2020 @ 00:17:47
  Author: felixonmars
Revision: 566513

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-src-exts/repos/community-staging-x86_64/PKGBUILD (from rev 566512, haskell-src-exts/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-02-11 00:17:47 UTC (rev 566513)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=haskell-src-exts
+pkgname=haskell-src-exts
+pkgver=1.21.1
+pkgrel=12
+pkgdesc="Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer"
+url="https://github.com/haskell-suite/haskell-src-exts"
+license=("custom:BSD")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc' 'happy' 'haskell-pretty-show' 'haskell-smallcheck' 'haskell-tasty'
+             'haskell-tasty-golden' 'haskell-tasty-smallcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('1349d419a13343fdf5579bf1f4027a3906de67ac257d0663fb6d10cf96e8312e08beec81d91044421f1202675a8c9381d280104d95c1ffea2e746f378d683e61')
+
+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
+    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 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list