Date: Thursday, December 24, 2020 @ 00:16:14 Author: felixonmars Revision: 785787
upgpkg: haskell-mockery 0.3.5-140: rebuild with ghc 8.10.3 (rebuild pass 1, specified --nocheck) Modified: haskell-mockery/trunk/PKGBUILD ----------+ PKGBUILD | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-12-23 23:50:09 UTC (rev 785786) +++ PKGBUILD 2020-12-24 00:16:14 UTC (rev 785787) @@ -4,13 +4,14 @@ _hkgname=mockery pkgname=haskell-mockery pkgver=0.3.5 -pkgrel=139 +pkgrel=140 pkgdesc="Support functions for automated testing" url="https://github.com/hspec/mockery" license=("MIT") arch=('x86_64') depends=('ghc-libs' 'haskell-base-compat' 'haskell-temporary' 'haskell-logging-facade') -makedepends=('ghc' 'haskell-hspec') +makedepends=('ghc') +checkdepends=('haskell-hspec') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") sha512sums=('bcb9bef083749028ec27ba879feca7c7a8f966f50b31fe1df3e82b3ac206b634b961755e4ee90ebc72ba8c17be3bbab6acf1b01776bca9497cc5cbc1ccb58850') @@ -17,8 +18,14 @@ build() { cd $_hkgname-$pkgver + if (( CHECKFUNC )); then + _opts=('--enable-tests') + else + _opts=('--disable-tests') + fi + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname "${_opts[@]}" \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid runhaskell Setup build $MAKEFLAGS runhaskell Setup register --gen-script
