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

Felix Yan felixonmars at archlinux.org
Sun Jan 20 12:19:53 UTC 2019


    Date: Sunday, January 20, 2019 @ 12:19:52
  Author: felixonmars
Revision: 425088

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 425087, haskell-src-exts/trunk/PKGBUILD)

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

Copied: haskell-src-exts/repos/community-staging-x86_64/PKGBUILD (from rev 425087, haskell-src-exts/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-01-20 12:19:52 UTC (rev 425088)
@@ -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.20.3
+pkgrel=10
+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=('5613570516e65c424b33f60c7ca2f44290fea4f804a56478be9f4594c4ca2a92f7d5701e38b3451c1f7e6808c6c870d4036395b511cd09658fe737842e2117c8')
+
+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