[arch-commits] Commit in haskell-input-parsers/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu May 27 00:25:28 UTC 2021


    Date: Thursday, May 27, 2021 @ 00:25:28
  Author: felixonmars
Revision: 947519

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-input-parsers/repos/community-staging-x86_64/
  haskell-input-parsers/repos/community-staging-x86_64/PKGBUILD
    (from rev 947518, haskell-input-parsers/trunk/PKGBUILD)

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

Copied: haskell-input-parsers/repos/community-staging-x86_64/PKGBUILD (from rev 947518, haskell-input-parsers/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-05-27 00:25:28 UTC (rev 947519)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=input-parsers
+pkgname=haskell-input-parsers
+pkgver=0.2
+pkgrel=7
+pkgdesc="Extension of the parsers library with more capability and efficiency"
+url="https://github.com/blamario/input-parsers"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-attoparsec' 'haskell-monoid-subclasses' 'haskell-parsers')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+        $_hkgname-import-fixes.patch::https://github.com/blamario/input-parsers/commit/999f30ca7c243ef46379b60bd1dcc7be43d28e65.patch)
+sha512sums=('75cdf91f6d30b4b7870d33b3495ac6cb39b418cee100d502de97fbad7c809170c3c1be5805b12dba89331212e884232b6c24fd9758d912dd4cf6d4aa950943f2'
+            '82897bcfc69d9658971854782232de9c64745159489f287735dac0aed32481ba12962c5108ff07e528038e94ab29391528a8783dc885b413a2fee77c50c889f5')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    patch -p1 -i ../$_hkgname-import-fixes.patch
+}
+
+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 $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 $_hkgname-$pkgver
+    runhaskell Setup test --show-details=direct
+}
+
+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