[arch-commits] Commit in haskell-pcre-light/trunk (PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Fri Feb 18 18:29:04 UTC 2022


    Date: Friday, February 18, 2022 @ 18:29:03
  Author: felixonmars
Revision: 1134065

upgpkg: haskell-pcre-light 0.4.1.0-160: rebuild with hashable 1.4.0.0 (rebuild pass 1, specified --nocheck)

Modified:
  haskell-pcre-light/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-18 18:27:21 UTC (rev 1134064)
+++ PKGBUILD	2022-02-18 18:29:03 UTC (rev 1134065)
@@ -4,13 +4,14 @@
 _hkgname=pcre-light
 pkgname=haskell-pcre-light
 pkgver=0.4.1.0
-pkgrel=159
+pkgrel=160
 pkgdesc="Portable regex library for Perl 5 compatible regular expressions"
 url="https://github.com/Daniel-Diaz/pcre-light"
 license=("BSD")
 arch=('x86_64')
 depends=('ghc-libs' 'pcre')
-makedepends=('ghc' 'haskell-hunit')
+makedepends=('ghc')
+checkdepends=('haskell-hunit')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha512sums=('491d9581e4c29d1a5a3b161210b83abbc135c2d0ee4018481f4101f91c95e93d7acf0764cb464a9ffe84bed9bf8fb400f4c68441ae1be03c0aa182a9be26dc39')
 
@@ -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 --ghc-option=-fllvm \
             -f-old_base -fuse-pkg-config
     runhaskell Setup build $MAKEFLAGS



More information about the arch-commits mailing list