[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Mar 11 20:42:03 UTC 2020


    Date: Wednesday, March 11, 2020 @ 20:42:03
  Author: felixonmars
Revision: 594610

addpkg: haskell-megaparsec7 7.0.5-1

Added:
  haskell-megaparsec7/
  haskell-megaparsec7/repos/
  haskell-megaparsec7/trunk/
  haskell-megaparsec7/trunk/PKGBUILD

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

Added: haskell-megaparsec7/trunk/PKGBUILD
===================================================================
--- haskell-megaparsec7/trunk/PKGBUILD	                        (rev 0)
+++ haskell-megaparsec7/trunk/PKGBUILD	2020-03-11 20:42:03 UTC (rev 594610)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=megaparsec
+pkgname=haskell-megaparsec7
+pkgver=7.0.5
+pkgrel=1
+pkgdesc="Monadic parser combinators"
+url="https://github.com/mrkkrp/megaparsec"
+license=("custom:BSD2")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-case-insensitive' 'haskell-parser-combinators'
+         'haskell-scientific')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('a804025b0f069f56856c4cbcf8f3c2b9852087e9c93875fb93fd0fb131a2a7ffe381f0b6d1a8743a8993331c29fb8e0168e178bf9ef688ee0e18a370183cd388')
+
+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-dev
+    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
+}
+
+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