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

Felix Yan felixonmars at archlinux.org
Mon Jun 7 16:10:12 UTC 2021


    Date: Monday, June 7, 2021 @ 16:10:12
  Author: felixonmars
Revision: 957795

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 957794, haskell-input-parsers/trunk/PKGBUILD)

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

Copied: haskell-input-parsers/repos/community-staging-x86_64/PKGBUILD (from rev 957794, haskell-input-parsers/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-06-07 16:10:12 UTC (rev 957795)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=input-parsers
+pkgname=haskell-input-parsers
+pkgver=0.2.1
+pkgrel=4
+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=('811185bae5482cc27553835aa1ce7b43443186e739656060d652d254e757df69acd380344fc98e8f0c3e166c71280d5406d80990948ff84c1752ed62bb65597d'
+            '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