[arch-commits] Commit in uusi/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Jun 17 00:09:19 UTC 2021
Date: Thursday, June 17, 2021 @ 00:09:19
Author: felixonmars
Revision: 964454
upgpkg: uusi 0.4.1.0-3: rebuild with ghc 9.0.1 (rebuild pass 1, specified --nocheck)
Modified:
uusi/trunk/PKGBUILD
----------+
PKGBUILD | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-17 00:04:18 UTC (rev 964453)
+++ PKGBUILD 2021-06-17 00:09:19 UTC (rev 964454)
@@ -2,13 +2,14 @@
pkgname=uusi
pkgver=0.4.1.0
-pkgrel=2
+pkgrel=3
pkgdesc="Tweak .cabal files"
url="https://github.com/berberman/uusi"
license=("MIT")
arch=('x86_64')
depends=('ghc-libs')
-makedepends=('ghc' 'haskell-hunit')
+makedepends=('ghc')
+checkdepends=('haskell-hunit')
source=("https://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('b4b7158916fab1cb6c03d0b3830545f56a1570f1efed37fc7d92542877919449c4eb6090050c57b022bc80807c6383f93dd54d43359960420c570586975cc93b')
@@ -15,8 +16,14 @@
build() {
cd $pkgname-$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=-optl-Wl\,-z\,relro\,-z\,now \
--ghc-option='-pie'
More information about the arch-commits
mailing list