[arch-commits] Commit in haskell-clock/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Feb 9 09:28:59 UTC 2021
Date: Tuesday, February 9, 2021 @ 09:28:58
Author: felixonmars
Revision: 850830
upgpkg: haskell-clock 0.8.2-4: rebuild with ghc 8.10.4 (rebuild pass 1, specified --nocheck)
Modified:
haskell-clock/trunk/PKGBUILD
----------+
PKGBUILD | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-09 08:59:55 UTC (rev 850829)
+++ PKGBUILD 2021-02-09 09:28:58 UTC (rev 850830)
@@ -4,13 +4,14 @@
_hkgname=clock
pkgname=haskell-clock
pkgver=0.8.2
-pkgrel=3
+pkgrel=4
pkgdesc="High-resolution clock functions: monotonic, realtime, cputime."
url="https://github.com/corsis/clock"
license=("BSD")
arch=('x86_64')
depends=('ghc-libs')
-makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-quickcheck')
+makedepends=('ghc')
+checkdepends=('haskell-tasty' 'haskell-tasty-quickcheck')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
sha512sums=('42a7681ae8f1357c4ae39f51a15d7a00f3d587c8fc787d648308f914702471e6f9b32ee51fa1e8164a77f195600fdab8e27d45aa13a7052a921c4b8c246b891e')
@@ -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 \
-f-llvm
runhaskell Setup build $MAKEFLAGS
More information about the arch-commits
mailing list