[arch-commits] Commit in haskell-logging-facade/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Dec 23 23:31:06 UTC 2020
Date: Wednesday, December 23, 2020 @ 23:31:05
Author: felixonmars
Revision: 785725
upgpkg: haskell-logging-facade 0.3.0-117: rebuild with ghc 8.10.3 (rebuild pass 1, specified --nocheck)
Modified:
haskell-logging-facade/trunk/PKGBUILD
----------+
PKGBUILD | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-23 23:24:00 UTC (rev 785724)
+++ PKGBUILD 2020-12-23 23:31:05 UTC (rev 785725)
@@ -4,13 +4,14 @@
_hkgname=logging-facade
pkgname=haskell-logging-facade
pkgver=0.3.0
-pkgrel=116
+pkgrel=117
pkgdesc="Simple logging abstraction that allows multiple back-ends"
url="https://github.com/sol/logging-facade"
license=("MIT")
arch=('x86_64')
depends=('ghc-libs' 'haskell-call-stack')
-makedepends=('ghc' 'haskell-hspec')
+makedepends=('ghc')
+checkdepends=('haskell-hspec')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
sha512sums=('3a6fbd7b309f6094224f6af2b98408a2a49519f8c0ca1a26178fc6c0b593af2101769a4981bcf250dab2ed99144ec14b19263a755e8c71a5b01400651076228f')
@@ -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
More information about the arch-commits
mailing list