[arch-commits] Commit in haskell-megaparsec/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Dec 24 06:42:00 UTC 2017
Date: Sunday, December 24, 2017 @ 06:41:59
Author: felixonmars
Revision: 275644
upgpkg: haskell-megaparsec 6.3.0-1
rebuild with megaparsec,6.3.0
Modified:
haskell-megaparsec/trunk/PKGBUILD
----------+
PKGBUILD | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-24 06:12:19 UTC (rev 275643)
+++ PKGBUILD 2017-12-24 06:41:59 UTC (rev 275644)
@@ -4,23 +4,23 @@
_hkgname=megaparsec
pkgname=haskell-megaparsec
-pkgver=6.2.0
-pkgrel=3
+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')
+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=('69ab31a31f264e133fd17fb1fe0c291de7cbe5cbc798cab44e1f4ba3c16d924febbed693b98eb0e63781245c530dfb62a5e90ad3e3eba1919ce1e93d15147e31')
+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}" \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
-f-dev
runhaskell Setup build
@@ -30,6 +30,11 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
cd "${srcdir}/${_hkgname}-${pkgver}"
More information about the arch-commits
mailing list