Date: Tuesday, January 30, 2018 @ 11:09:42 Author: felixonmars Revision: 288227
upgpkg: haskell-config-ini 0.2.2.0-1 rebuild with config-ini,0.2.2.0 Modified: haskell-config-ini/trunk/PKGBUILD ----------+ PKGBUILD | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-01-30 11:06:51 UTC (rev 288226) +++ PKGBUILD 2018-01-30 11:09:42 UTC (rev 288227) @@ -4,8 +4,8 @@ _hkgname=config-ini pkgname=haskell-config-ini -pkgver=0.2.1.1 -pkgrel=6 +pkgver=0.2.2.0 +pkgrel=1 pkgdesc="A library for simple INI-based configuration files." url="https://github.com/aisamanra/config-ini" license=("custom:BSD3") @@ -13,7 +13,7 @@ depends=('ghc-libs' 'haskell-text' 'haskell-unordered-containers' 'haskell-megaparsec') makedepends=('ghc' 'haskell-ini' 'haskell-hedgehog' 'haskell-doctest' 'haskell-microlens') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('d6cc340b84cda249f9a3f06d8d7508a78a11d045bd82cd9bd34e19efa31720a85186c2e4f30a837365a3c82979ec170b9bc5ebe937db881796f858cd16d855d9') +sha512sums=('901745b9e6f2eb5d6458c8702a4a112f115448a89152eeec6610096ffb82577f132f0ab748835a9a55c293840674652791a54c746289fd718f37bd41ea3b4ed1') prepare() { sed -i 's/doctest \[ /doctest [ "-dynamic", /' $_hkgname-$pkgver/test/doctest/Main.hs @@ -20,11 +20,13 @@ } 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}" --enable-tests \ - --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -f-enable-doctests + # https://github.com/aisamanra/config-ini/issues/12 runhaskell Setup build runhaskell Setup register --gen-script runhaskell Setup unregister --gen-script @@ -33,13 +35,12 @@ } check() { - # https://github.com/aisamanra/config-ini/issues/12 cd $_hkgname-$pkgver - runhaskell Setup test || warning "Tests failed" + 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"
