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

Felix Yan felixonmars at archlinux.org
Wed May 19 23:47:19 UTC 2021


    Date: Wednesday, May 19, 2021 @ 23:47:18
  Author: felixonmars
Revision: 937234

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-cassava-megaparsec/repos/community-staging-x86_64/
  haskell-cassava-megaparsec/repos/community-staging-x86_64/PKGBUILD
    (from rev 937233, haskell-cassava-megaparsec/trunk/PKGBUILD)

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

Copied: haskell-cassava-megaparsec/repos/community-staging-x86_64/PKGBUILD (from rev 937233, haskell-cassava-megaparsec/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-05-19 23:47:18 UTC (rev 937234)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=cassava-megaparsec
+pkgname=haskell-cassava-megaparsec
+pkgver=2.0.2
+pkgrel=86
+pkgdesc="Megaparsec parser of CSV files that plays nicely with Cassava"
+url="https://github.com/stackbuilders/cassava-megaparsec"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-cassava' 'haskell-megaparsec' 'haskell-unordered-containers'
+         'haskell-vector')
+makedepends=('ghc' 'haskell-hspec' 'haskell-hspec-megaparsec')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('b32057fe6dd2a70eb96e9453e3f765f0b67099342411df050bf30dc0bf1c360b3804b1e958c6e2937f66b98433e0459ab3833f060065b45af051415cdfc0bf7b')
+
+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.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE.md
+}



More information about the arch-commits mailing list