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

Felix Yan felixonmars at archlinux.org
Thu Aug 13 16:05:28 UTC 2020


    Date: Thursday, August 13, 2020 @ 16:05:27
  Author: felixonmars
Revision: 677563

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-attoparsec/repos/community-staging-x86_64/
  haskell-attoparsec/repos/community-staging-x86_64/PKGBUILD
    (from rev 677562, haskell-attoparsec/trunk/PKGBUILD)

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

Copied: haskell-attoparsec/repos/community-staging-x86_64/PKGBUILD (from rev 677562, haskell-attoparsec/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-08-13 16:05:27 UTC (rev 677563)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=attoparsec
+pkgname=haskell-attoparsec
+pkgver=0.13.2.4
+pkgrel=11
+pkgdesc="Fast combinator parsing for bytestrings and text"
+url="https://github.com/bos/attoparsec"
+license=("BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-scientific')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-quickcheck-unicode' 'haskell-tasty'
+             'haskell-tasty-quickcheck' 'haskell-vector')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('c2f94792ab4e68cfdbfbc92dfdc2cff08c9b96ef9b39608ed58bf25ba602e0ffd687c74b2d92045ff384e6c927cefb3774365218aebe9af01c153bdd3a29d946')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/< *2.14/<3/' $_hkgname.cabal
+}
+
+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 \
+            -f-developer
+    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 || warning "Tests failed, possibly due to unmet dependency version on QuickCheck"
+}
+
+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