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

Felix Yan felixonmars at archlinux.org
Sun May 12 08:55:26 UTC 2019


    Date: Sunday, May 12, 2019 @ 08:55:26
  Author: felixonmars
Revision: 465987

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

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

Copied: haskell-src-exts/repos/community-staging-x86_64/PKGBUILD (from rev 465986, haskell-src-exts/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-12 08:55:26 UTC (rev 465987)
@@ -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.0
+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=('73e5a0b811d37d8c304c12cf7adbeac3642e626ed3f1ad8b007aca19dc04f0b2a991cdbef52432c3467584bd1ff7ce424a3bcd86b13e6ef10819a11ef44b889c')
+
+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