Date: Saturday, January 6, 2018 @ 08:18:59 Author: felixonmars Revision: 279382
upgpkg: haskell-hledger-lib 1.5-1 rebuild with hledger,1.5 hledger-api,1.5 hledger-lib,1.5 hledger-ui,1.5 hledger-web,1.5 Modified: haskell-hledger-lib/trunk/PKGBUILD ----------+ PKGBUILD | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-01-06 08:04:47 UTC (rev 279381) +++ PKGBUILD 2018-01-06 08:18:59 UTC (rev 279382) @@ -4,27 +4,29 @@ _hkgname=hledger-lib pkgname=haskell-hledger-lib -pkgver=1.4 -pkgrel=10 +pkgver=1.5 +pkgrel=1 pkgdesc="Core data types, parsers and functionality for the hledger accounting tools" url="http://hledger.org" license=("GPL") arch=('x86_64') depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-base-compat' 'haskell-blaze-markup' - 'haskell-cmdargs' 'haskell-csv' 'haskell-data-default' 'haskell-decimal' + 'haskell-cmdargs' 'haskell-csv' 'haskell-data-default' 'haskell-decimal' 'haskell-extra' 'haskell-hashtables' 'haskell-megaparsec' 'haskell-mtl' 'haskell-old-time' 'haskell-pretty-show' 'haskell-regex-tdfa' 'haskell-safe' 'haskell-split' 'haskell-text' 'haskell-uglymemo' 'haskell-utf8-string' 'haskell-hunit' 'haskell-parsec' 'haskell-semigroups') -makedepends=('ghc') +makedepends=('ghc' 'haskell-doctest' 'haskell-glob' 'haskell-test-framework' + 'haskell-test-framework-hunit') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('21882c36c8998cc8fb21a57f907d52fe193b9091a4cb44774cb98b3fce7f50a148abae7acaa6d0bfafffc96803a7ccc60c52dd92efd5256757da106f33bafc60') +sha512sums=('b9f134ad4ffdfdbd79c3a477397062db7a3610a56e842244c371db1b59c50c83d7b710e54b3c0b73067f57a36f7838bcae080490fbc1389882af9f59bd450588') prepare() { # It does nothing sed -e '/mtl-compat/d' \ - -e 's/, megaparsec >=5.0 && < 6.2/, megaparsec >=5/' \ -i ${_hkgname}-${pkgver}/${_hkgname}.cabal + + sed -i 's/++ fs2$/++ fs2 ++ ["-dynamic"]/' ${_hkgname}-${pkgver}/tests/doctests.hs } build() { @@ -31,7 +33,7 @@ cd "${srcdir}/${_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 runhaskell Setup build runhaskell Setup register --gen-script @@ -40,6 +42,11 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + package() { cd "${srcdir}/${_hkgname}-${pkgver}"
