Date: Sunday, November 26, 2017 @ 09:26:53 Author: felixonmars Revision: 268871
upgpkg: haskell-th-expand-syns 0.4.3.0-6 rebuild with ghc 8.2.2 Modified: haskell-th-expand-syns/trunk/PKGBUILD ----------+ PKGBUILD | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-11-26 09:26:16 UTC (rev 268870) +++ PKGBUILD 2017-11-26 09:26:53 UTC (rev 268871) @@ -4,7 +4,7 @@ _hkgname=th-expand-syns pkgname=haskell-th-expand-syns pkgver=0.4.3.0 -pkgrel=5 +pkgrel=6 pkgdesc="Expands type synonyms in Template Haskell ASTs" url="https://hackage.haskell.org/package/th-expand-syns" license=('custom:BSD3') @@ -16,9 +16,9 @@ build() { 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 @@ -27,9 +27,14 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + package() { cd "${srcdir}/${_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" runhaskell Setup copy --destdir="${pkgdir}"