Date: Saturday, January 6, 2018 @ 08:23:20 Author: felixonmars Revision: 279384
upgpkg: hledger 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: hledger/trunk/PKGBUILD ----------+ PKGBUILD | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-01-06 08:19:13 UTC (rev 279383) +++ PKGBUILD 2018-01-06 08:23:20 UTC (rev 279384) @@ -3,27 +3,26 @@ # Contributor: Arch Haskell Team <[email protected]> pkgname=hledger -pkgver=1.4 -pkgrel=14 +pkgver=1.5 +pkgrel=1 pkgdesc="Command-line interface for the hledger accounting tool" url="http://hledger.org" license=("GPL") arch=('x86_64') -depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-base-compat' 'haskell-diff' - 'haskell-file-embed' 'haskell-here' 'haskell-pretty-show' 'haskell-temporary' - 'haskell-tabular' 'haskell-hledger-lib' 'haskell-unordered-containers' 'haskell-cmdargs' +depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-base-compat' 'haskell-cmdargs' + 'haskell-decimal' 'haskell-diff' 'haskell-file-embed' 'haskell-here' 'haskell-pretty-show' + 'haskell-temporary' 'haskell-tabular' 'haskell-hledger-lib' 'haskell-unordered-containers' 'haskell-csv' 'haskell-data-default' 'haskell-hashable' 'haskell-hunit' 'haskell-mtl' 'haskell-old-time' 'haskell-megaparsec' 'haskell-regex-tdfa' 'haskell-safe' 'haskell-shakespeare' 'haskell-split' 'haskell-text' 'haskell-utf8-string' 'haskell-utility-ht' 'haskell-wizards') -makedepends=('ghc') +makedepends=('ghc' 'haskell-test-framework' 'haskell-test-framework-hunit') source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") -sha512sums=('25d4003cbfbfb672c665a5e0a2c6852df8c1ca95b8d33154376a527d27d1a7a114c00e75b5e2c8b8ac5bfe9cb7d8f8d0a410cadbf2900691e4e2b6e0645c7369') +sha512sums=('252c515c1cec094266888ae6ba8ebc166abbfe0b2681b4f0cca07e3b21488f6ce36a2ac5ffa4a7629414c1720c73016b8a45921c4c336923b21bb15352630c39') prepare() { # It does nothing sed -e '/mtl-compat/d' \ - -e 's/, megaparsec >=5.0 && < 6.2/, megaparsec >=5/' \ -i ${pkgname}-${pkgver}/${pkgname}.cabal } @@ -30,7 +29,7 @@ build() { cd "${srcdir}/${pkgname}-${pkgver}" runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" --enable-tests \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ -fterminfo -fthreaded LC_CTYPE=en_US.UTF-8 runhaskell Setup build @@ -40,6 +39,11 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $pkgname-$pkgver + runhaskell Setup test +} + package() { cd "${srcdir}/${pkgname}-${pkgver}" install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
