Date: Wednesday, January 17, 2018 @ 10:04:48 Author: felixonmars Revision: 283603
upgpkg: haskell-http-client 0.5.8-1 rebuild with http-client,0.5.8 Modified: haskell-http-client/trunk/PKGBUILD ----------+ PKGBUILD | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-01-17 09:59:50 UTC (rev 283602) +++ PKGBUILD 2018-01-17 10:04:48 UTC (rev 283603) @@ -4,25 +4,25 @@ _hkgname=http-client pkgname=haskell-http-client -pkgver=0.5.7.1 -pkgrel=4 +pkgver=0.5.8 +pkgrel=1 pkgdesc="An HTTP client engine" url="https://github.com/snoyberg/http-client" license=("MIT") arch=('x86_64') -depends=('ghc-libs' "haskell-base64-bytestring" "haskell-blaze-builder" "haskell-case-insensitive" - "haskell-cookie" "haskell-exceptions" "haskell-http-types" "haskell-mime-types" - "haskell-network" "haskell-network-uri" "haskell-random" "haskell-streaming-commons" - "haskell-text") -makedepends=('ghc') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-blaze-builder' 'haskell-case-insensitive' + 'haskell-cookie' 'haskell-exceptions' 'haskell-http-types' 'haskell-mime-types' + 'haskell-network' 'haskell-network-uri' 'haskell-random' 'haskell-streaming-commons' + 'haskell-text') +makedepends=('ghc' 'haskell-async' 'haskell-hspec' 'haskell-monad-control' 'haskell-zlib') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('d4b6089f25bd7342f9873ce767e2c74036e55adf2aa163fc3ffa3895d57fff14af6d10c15439d7ae62e3c2772641b092226ca4b24e57a9f9ff9d4318fe6163b6') +sha512sums=('4d29b4bbe391a6729afe710f20411ec2ec494a5f9d889c293b303ab24f87910e355f5333b9482f4220503ac39618829b037af955db0fdc0f15eeaa1451d652ed') 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 -fnetwork-uri runhaskell Setup build runhaskell Setup register --gen-script @@ -31,8 +31,13 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + 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"
