Date: Wednesday, August 19, 2020 @ 16:39:49 Author: felixonmars Revision: 685018
upgpkg: haskell-tasty-expected-failure 0.12-1: rebuild with tasty-expected-failure 0.12 Modified: haskell-tasty-expected-failure/trunk/PKGBUILD ----------+ PKGBUILD | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-08-19 16:22:27 UTC (rev 685017) +++ PKGBUILD 2020-08-19 16:39:49 UTC (rev 685018) @@ -3,27 +3,23 @@ _hkgname=tasty-expected-failure pkgname=haskell-tasty-expected-failure -pkgver=0.11.1.2 -pkgrel=27 +pkgver=0.12 +pkgrel=1 pkgdesc="Mark tasty tests as failure expected" url="https://github.com/nomeata/tasty-expected-failure" license=("MIT") arch=('x86_64') -depends=('ghc-libs' 'haskell-tagged' 'haskell-tasty') -makedepends=('ghc') +depends=('ghc-libs' 'haskell-tagged' 'haskell-tasty' 'haskell-unbounded-delays') +makedepends=('ghc' 'haskell-hedgehog' 'haskell-tasty-golden' 'haskell-tasty-hedgehog' + 'haskell-tasty-hunit') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('31f89d64a1f700a2563b291d287f559e023b0b1059cf5ad35eb9a8b2d4a7d90b2ffced828017b3e86d7ece0b125787f7512e9f4745c75d38bbc688e09031aae5') +sha512sums=('779fe09a41c2bcbc7a51fd2dd893ebd2acd4a957ba43ee9e93474a6e2f7f6dcdcd7e28d268aed2ec403d912a4f56c6587aac5f4cde45c950cf26b50b5f6757aa') -prepare() { - cd $_hkgname-$pkgver - sed -i 's/< *4.14/<5/' $_hkgname.cabal -} - build() { 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 $MAKEFLAGS runhaskell Setup register --gen-script @@ -32,6 +28,12 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $_hkgname-$pkgver + # https://github.com/nomeata/tasty-expected-failure/issues/19 + runhaskell Setup test || : +} + package() { cd $_hkgname-$pkgver