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

Felix Yan felixonmars at archlinux.org
Thu Jun 17 23:11:27 UTC 2021


    Date: Thursday, June 17, 2021 @ 23:11:27
  Author: felixonmars
Revision: 964961

upgpkg: haskell-dlist 1.0-90: rebuild with ghc 9.0.1 (rebuild pass 1, specified --nocheck)

Modified:
  haskell-dlist/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-17 23:08:45 UTC (rev 964960)
+++ PKGBUILD	2021-06-17 23:11:27 UTC (rev 964961)
@@ -6,21 +6,28 @@
 _hkgname=dlist
 pkgname=haskell-dlist
 pkgver=1.0
-pkgrel=89
+pkgrel=90
 pkgdesc="Differences lists"
 url="https://hackage.haskell.org/package/dlist"
 license=('BSD')
 arch=('x86_64')
 depends=('ghc-libs')
-makedepends=('ghc' 'haskell-quickcheck')
+makedepends=('ghc')
+checkdepends=('haskell-quickcheck')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha512sums=('8985b9e775e8d99c3d8cf59eabfb7ed13c395482186b086831a79afea9b980ee59e386856df82dcc030f430be55cc95fa057e962776fe37a371e8be5ae19abef')
 
 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