Date: Monday, January 29, 2018 @ 17:29:34 Author: felixonmars Revision: 287826
upgpkg: haskell-http-api-data 0.3.7.2-1 rebuild with http-api-data,0.3.7.2 Modified: haskell-http-api-data/trunk/PKGBUILD ----------+ PKGBUILD | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-01-29 17:18:16 UTC (rev 287825) +++ PKGBUILD 2018-01-29 17:29:34 UTC (rev 287826) @@ -4,8 +4,8 @@ _hkgname=http-api-data pkgname=haskell-http-api-data -pkgver=0.3.7.1 -pkgrel=24 +pkgver=0.3.7.2 +pkgrel=1 pkgdesc="Converting to/from HTTP API data like URL pieces, headers and query parameters." url="https://github.com/fizruk/http-api-data" license=("custom:BSD3") @@ -13,15 +13,20 @@ depends=('ghc-libs' 'haskell-attoparsec' 'haskell-attoparsec-iso8601' 'haskell-hashable' 'haskell-http-types' 'haskell-text' 'haskell-time-locale-compat' 'haskell-unordered-containers' 'haskell-uri-bytestring' 'haskell-uuid-types') -makedepends=('ghc') +makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-doctest' 'haskell-hspec' 'haskell-hunit' + 'haskell-quickcheck' 'haskell-quickcheck-instances' 'haskell-uuid') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('896e7e9737bb0d5869d1e1aa1d4a06409c1f56a5b508166b1aaf202ef638a2273c226beae22575b378254966c7b5be1b668efb91f2a744b8b73a2a3013552efb') +sha512sums=('6720aec3bd17de95660ee33e6af8b528b371e83ea6f6d623e6a2263d4bc4ea350132241cf3d61467944f5fb49362487d4de8af68e980cbec3f71bd8bc5e93f06') +prepare() { + sed -i '/test-suite doctests/a \ x-doctest-options: -dynamic' $_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-use-text-show runhaskell Setup build @@ -31,8 +36,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"