[arch-commits] Commit in haskell-distributive/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Jan 3 15:34:01 UTC 2021
Date: Sunday, January 3, 2021 @ 15:34:01
Author: felixonmars
Revision: 805411
upgpkg: haskell-distributive 0.6.2.1-2: rebuild with distributive 0.6.2.1 (rebuild pass 1, specified --nocheck)
Modified:
haskell-distributive/trunk/PKGBUILD
----------+
PKGBUILD | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-03 15:31:34 UTC (rev 805410)
+++ PKGBUILD 2021-01-03 15:34:01 UTC (rev 805411)
@@ -4,21 +4,28 @@
_hkgname=distributive
pkgname=haskell-distributive
pkgver=0.6.2.1
-pkgrel=1
+pkgrel=2
pkgdesc="Distributive functors -- Dual to Traversable"
url="https://github.com/ekmett/distributive/"
license=("BSD")
arch=('x86_64')
depends=('ghc-libs' 'haskell-base-orphans' 'haskell-tagged')
-makedepends=('ghc' 'haskell-generic-deriving' 'haskell-hspec' 'haskell-hspec-discover')
+makedepends=('ghc')
+checkdepends=('haskell-generic-deriving' 'haskell-hspec' 'haskell-hspec-discover')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
sha512sums=('387c7b6e0b2f917fd68d52ffbc79b9db21e488629309bfaf0dc77450bfd37c0f7f8a29458532616b5395552f84f3727b462cb2876e5aca79101e2c752b26e0a7')
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 \
-ftagged -f-semigroups
runhaskell Setup build $MAKEFLAGS
More information about the arch-commits
mailing list