[arch-commits] Commit in haskell-vector-th-unbox/trunk (PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Sun Jul 10 14:30:44 UTC 2022


    Date: Sunday, July 10, 2022 @ 14:30:44
  Author: felixonmars
Revision: 1249293

fix checkdepends

Modified:
  haskell-vector-th-unbox/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-10 14:23:20 UTC (rev 1249292)
+++ PKGBUILD	2022-07-10 14:30:44 UTC (rev 1249293)
@@ -10,15 +10,22 @@
 license=("BSD")
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-vector')
-makedepends=('ghc' 'haskell-data-default')
+makedepends=('ghc')
+checkdepends=('haskell-data-default')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha512sums=('55af4bcced3a39464aca6dca95a8148498a698d9402a583b916aa178d58d3895cc609525416de53c0a39566b892c7b09296fc442db7851a19d071142cce72a46')
 
 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 --datasubdir=$pkgname --enable-tests \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname "${_opts[@]}" \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm
     runhaskell Setup build $MAKEFLAGS
     runhaskell Setup register --gen-script



More information about the arch-commits mailing list