[arch-commits] Commit in haskell-http/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Dec 13 00:59:30 UTC 2017
Date: Wednesday, December 13, 2017 @ 00:59:29
Author: felixonmars
Revision: 274052
upgpkg: haskell-http 4000.3.9-1
rebuild with HTTP,4000.3.9
Modified:
haskell-http/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++++++++++++++---------
1 file changed, 18 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-13 00:55:00 UTC (rev 274051)
+++ PKGBUILD 2017-12-13 00:59:29 UTC (rev 274052)
@@ -4,23 +4,27 @@
_hkgname=HTTP
pkgname=haskell-http
-pkgver=4000.3.8
-pkgrel=2
+pkgver=4000.3.9
+pkgrel=1
pkgdesc="A library for client-side HTTP"
url="https://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('x86_64')
-depends=('ghc-libs' 'sh' 'haskell-network' 'haskell-parsec' 'haskell-mtl' 'haskell-network-uri')
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-network' 'haskell-parsec' 'haskell-mtl' 'haskell-network-uri')
+makedepends=('ghc' 'haskell-hunit' 'haskell-httpd-shed' 'haskell-puremd5' 'haskell-split'
+ 'haskell-test-framework' 'haskell-test-framework-hunit' 'haskell-case-insensitive'
+ 'haskell-http-types' 'haskell-wai' 'haskell-warp' 'haskell-conduit'
+ 'haskell-conduit-extra')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('fcf2ceec5818d87a081077d91bc8753382bb855ff477f8c95bc6a60b6ce7122457900d6e1dee4f145c56875018adc9908cdb97a373941d1d3759945790d96d4b')
+sha512sums=('752fdcd95711c8b33f1e27dd3128beccf57db80c0e6341c02a418d180af3adf64eb85760d4d53984ba3072ac9f9ca047078b71ef42365ceaf63bd92c27fcaee3')
build() {
cd "${srcdir}/${_hkgname}-${pkgver}"
-
+
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
- --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-mtl1 -f-warn-as-error -f-network23 -f-conduit10 -fwarp-tests -fnetwork-uri
runhaskell Setup build
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
@@ -28,9 +32,14 @@
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}"
More information about the arch-commits
mailing list