Date: Wednesday, February 14, 2018 @ 14:04:55 Author: felixonmars Revision: 294323
upgpkg: haskell-src-exts 1.20.1-1 rebuild with haskell-src-exts,1.20.1 hlint,2.1 hoogle,5.0.16 stylish-haskell,0.9.0.2 Modified: haskell-src-exts/trunk/PKGBUILD ----------+ PKGBUILD | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-02-14 14:03:01 UTC (rev 294322) +++ PKGBUILD 2018-02-14 14:04:55 UTC (rev 294323) @@ -4,22 +4,27 @@ _hkgname=haskell-src-exts pkgname=haskell-src-exts -pkgver=1.19.1 -pkgrel=5 +pkgver=1.20.1 +pkgrel=1 pkgdesc="Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer" url="https://github.com/haskell-suite/haskell-src-exts" license=("custom:BSD") arch=('x86_64') -depends=('ghc-libs' "haskell-cpphs") -makedepends=('happy' 'ghc') +depends=('ghc-libs' 'haskell-cpphs') +makedepends=('ghc' 'happy' 'haskell-mtl' 'haskell-pretty-show' 'haskell-smallcheck' 'haskell-tasty' + 'haskell-tasty-golden' 'haskell-tasty-smallcheck') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('b304084734bf71abdc8f2beec966a57180ca9a6427737c5c9479390b4c701a1f85e6aaaa40a8474b4a27e184ca867fd980afb10884a98df22746c7ee74dfc60a') +sha512sums=('8faf7910038ad9c23142a7b652acb02cfc0f79d8600481e7784e7307792d6fda3f20d8babbf6ffd5ce0a7eb7d0fafaf34e507d11514ee3119cde69ff4dc1c4c4') +prepare() { + sed -i 's/pretty-show == 1.6.10/pretty-show/' $_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 runhaskell Setup build runhaskell Setup register --gen-script @@ -28,8 +33,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"
