[arch-commits] Commit in haskell-bsb-http-chunked/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Sep 17 17:42:35 UTC 2018
Date: Monday, September 17, 2018 @ 17:42:34
Author: felixonmars
Revision: 382634
upgpkg: haskell-bsb-http-chunked 0.0.0.3-1
rebuild with bsb-http-chunked 0.0.0.3
Modified:
haskell-bsb-http-chunked/trunk/PKGBUILD
----------+
PKGBUILD | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-09-17 17:39:57 UTC (rev 382633)
+++ PKGBUILD 2018-09-17 17:42:34 UTC (rev 382634)
@@ -2,20 +2,23 @@
_hkgname=bsb-http-chunked
pkgname=haskell-bsb-http-chunked
-pkgver=0.0.0.2
-pkgrel=3
+pkgver=0.0.0.3
+pkgrel=1
pkgdesc="Chunked HTTP transfer encoding for bytestring builders"
-url="http://github.com/sjakobi/bsb-http-chunked"
+url="https://github.com/sjakobi/bsb-http-chunked"
license=('custom:BSD3')
arch=('x86_64')
depends=('ghc-libs')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-attoparsec' 'haskell-blaze-builder' 'haskell-hedgehog' 'haskell-tasty'
+ 'haskell-tasty-hedgehog' 'haskell-tasty-hunit' 'haskell-doctest')
source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
-sha512sums=('8ce8ba1065e2ec219d6bb663b597e049bac403dc8d061907e677781333d878be1fed48d4a3f6c34801afa5e89bdbd965b8dee71515c7fb2e6f58e8957194fb22')
+sha512sums=('ea3eb15b1d02e770a54df61daac1db044008ce204eeb68c4b7333a0799d5a1a2001f51927bc8fa824ffae93f2b8c85dcb69e9506430f7fc2dbb7a7ff452373ca')
prepare() {
cd $_hkgname-$pkgver
- sed -i 's/bytestring-builder < 0.11/bytestring < 0.11/' $_hkgname.cabal
+ sed -i -e 's/bytestring-builder < 0.11/bytestring < 0.11/' \
+ -e '/, bytestring-builder/d' \
+ $_hkgname.cabal
}
build() {
@@ -22,7 +25,7 @@
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
runhaskell Setup build
runhaskell Setup register --gen-script
@@ -31,6 +34,11 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
cd $_hkgname-$pkgver
More information about the arch-commits
mailing list