[arch-commits] Commit in haskell-tasty-expected-failure/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Aug 24 22:43:02 UTC 2020
Date: Monday, August 24, 2020 @ 22:43:01
Author: felixonmars
Revision: 687877
upgpkg: haskell-tasty-expected-failure 0.12-2: rebuild pass 1, specified --nocheck
Modified:
haskell-tasty-expected-failure/trunk/PKGBUILD
----------+
PKGBUILD | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-24 22:35:50 UTC (rev 687876)
+++ PKGBUILD 2020-08-24 22:43:01 UTC (rev 687877)
@@ -4,14 +4,15 @@
_hkgname=tasty-expected-failure
pkgname=haskell-tasty-expected-failure
pkgver=0.12
-pkgrel=1
+pkgrel=2
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' 'haskell-unbounded-delays')
-makedepends=('ghc' 'haskell-hedgehog' 'haskell-tasty-golden' 'haskell-tasty-hedgehog'
- 'haskell-tasty-hunit')
+makedepends=('ghc')
+checkdepends=('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=('779fe09a41c2bcbc7a51fd2dd893ebd2acd4a957ba43ee9e93474a6e2f7f6dcdcd7e28d268aed2ec403d912a4f56c6587aac5f4cde45c950cf26b50b5f6757aa')
@@ -18,8 +19,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
More information about the arch-commits
mailing list