Date: Friday, September 30, 2022 @ 16:09:57 Author: felixonmars Revision: 1320038
upgpkg: haskell-wreq 0.5.3.3-263: rebuild with wreq (fixed tests) Modified: haskell-wreq/trunk/PKGBUILD ----------+ PKGBUILD | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-09-30 15:59:16 UTC (rev 1320037) +++ PKGBUILD 2022-09-30 16:09:57 UTC (rev 1320038) @@ -3,7 +3,7 @@ _hkgname=wreq pkgname=haskell-wreq pkgver=0.5.3.3 -pkgrel=262 +pkgrel=263 pkgdesc="An easy-to-use HTTP client library." url="https://github.com/bos/wreq" license=('BSD') @@ -18,14 +18,14 @@ makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-doctest' 'haskell-hunit' 'haskell-quickcheck' 'haskell-network-info' 'haskell-temporary' 'haskell-test-framework' 'haskell-test-framework-hunit' 'haskell-test-framework-quickcheck2' 'haskell-vector') -source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) -sha512sums=('f074790cf3370d9356efbf5aeabb7421d59299471e02d93010453bb6f4e8daee517fcdf6891245272a9b08a35bc7b1b2233b75825ec377f6403c99cf91041f2e') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz + wreq-aeson-2-lens-aeson-1.2.patch::https://github.com/haskell/wreq/pull/149.patch) +sha512sums=('f074790cf3370d9356efbf5aeabb7421d59299471e02d93010453bb6f4e8daee517fcdf6891245272a9b08a35bc7b1b2233b75825ec377f6403c99cf91041f2e' + 'cd15090c0ce82a6737ad04af5d3f19c4804607b984ba58af721f0118e2eedff76771c02bc216d97f55580d3d41e019773aa082ef1b8e18f71289d249717873f4') prepare() { cd $_hkgname-$pkgver - sed -e '/import Data.Aeson.Encode/a import Data.Aeson.Key (fromText)' \ - -e 's/decodeUtf8 (cookieName c)/fromText(decodeUtf8 (cookieName c))/' \ - -i httpbin/HttpBin/Server.hs + patch -p1 -i ../wreq-aeson-2-lens-aeson-1.2.patch } build() { @@ -32,7 +32,7 @@ cd $_hkgname-$pkgver runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --disable-tests \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \ -fdoctest -f-aws -fhttpbin -f-developer runhaskell Setup build $MAKEFLAGS @@ -44,8 +44,7 @@ check() { cd $_hkgname-$pkgver - # TODO: hspec 2.10.2 with aeson 2 has new failures with the tests - # runhaskell Setup test || echo "Tests failed" + runhaskell Setup test --show-details=direct } package() {