[arch-commits] Commit in haskell-attoparsec/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Jan 14 10:51:01 UTC 2018
Date: Sunday, January 14, 2018 @ 10:50:59
Author: felixonmars
Revision: 281984
upgpkg: haskell-attoparsec 0.13.2.2-1
rebuild with attoparsec,0.13.2.2
Modified:
haskell-attoparsec/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-14 10:38:19 UTC (rev 281983)
+++ PKGBUILD 2018-01-14 10:50:59 UTC (rev 281984)
@@ -4,22 +4,27 @@
_hkgname=attoparsec
pkgname=haskell-attoparsec
-pkgver=0.13.2.0
-pkgrel=6
+pkgver=0.13.2.2
+pkgrel=1
pkgdesc="Fast combinator parsing for bytestrings and text"
url="https://github.com/bos/attoparsec"
license=("BSD3")
arch=('x86_64')
-depends=('ghc-libs' "haskell-scientific" "haskell-text")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-scientific' 'haskell-text')
+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=('617a2dbe0231843870dbfa70fe3914514563254990daf9499f8e8d131119ca09a68d46db4601d436db9d3a28113cec89b085e782dd32389bd56ea14c7f61e252')
+sha512sums=('3726b9d3c45289b2148c8df99d41a31fbb32a9783e1ef3940110bf064da0d000277cba54a3d990210e48a4fcaa8ed016228be7d26861e74de40c971bd7c89ea6')
+prepare() {
+ sed -i 's/QuickCheck >= 2.7 && < 2.10,/QuickCheck >= 2.7,/' $_hkgname-$pkgver/$_hkgname.cabal
+}
+
build() {
- cd "${srcdir}/${_hkgname}-${pkgver}"
+ cd $_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-developer
runhaskell Setup build
@@ -29,8 +34,13 @@
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 "${srcdir}/${_hkgname}-${pkgver}"
+ 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"
More information about the arch-commits
mailing list