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

Felix Yan felixonmars at archlinux.org
Sun Dec 24 06:42:15 UTC 2017


    Date: Sunday, December 24, 2017 @ 06:42:14
  Author: felixonmars
Revision: 275645

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-megaparsec/repos/community-staging-x86_64/PKGBUILD (from rev 275644, haskell-megaparsec/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-12-24 06:42:14 UTC (rev 275645)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=megaparsec
+pkgname=haskell-megaparsec
+pkgver=6.3.0
+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-mtl' 'haskell-parser-combinators'
+         'haskell-scientific' 'haskell-text')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-hspec' 'haskell-hspec-expectations')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('15e534de81267f61fbebded236b42e25817de93e21714f78746c9a39ebb48445b4fa529f38d2f43511018c37a062db6c8d32d812fe64e12799b3e5def79b5d1e')
+
+build() {
+    cd "${srcdir}/${_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
+}
+
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
+package() {
+    cd "${srcdir}/${_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