Date: Friday, December 8, 2017 @ 18:00:31 Author: felixonmars Revision: 273350
upgpkg: haskell-generic-deriving 1.12-1 rebuild with generic-deriving,1.12 Modified: haskell-generic-deriving/trunk/PKGBUILD ----------+ PKGBUILD | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-12-08 17:50:40 UTC (rev 273349) +++ PKGBUILD 2017-12-08 18:00:31 UTC (rev 273350) @@ -4,22 +4,22 @@ _hkgname=generic-deriving pkgname=haskell-generic-deriving -pkgver=1.11.2 -pkgrel=5 +pkgver=1.12 +pkgrel=1 pkgdesc="Generic programming library for generalised deriving." url="https://github.com/dreixel/generic-deriving" license=("custom:BSD3") arch=('x86_64') depends=('ghc-libs') -makedepends=('ghc') +makedepends=('ghc' 'haskell-hspec') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('c114bdc0cfb40dcdd5014f6e34f494e3d3d275b43299a3b51d8afc7927a5879260a458e7c94234cea27f6ad554fd87d8cc934dffb53cfc919837cd6fb9ae3a0e') +sha512sums=('6e8703670e483054fb36740764eb4b1e2d094f28170138b38fb554a3809781242478401b2cfe268d3c0d9599b3458dd84bcfa8f9b67409e686ce93c9cc48c85f') 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 \ -fbase-4-9 runhaskell Setup build @@ -29,9 +29,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}"