[arch-commits] Commit in haskell-hspec-discover/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Jan 20 18:24:35 UTC 2019
Date: Sunday, January 20, 2019 @ 18:24:34
Author: felixonmars
Revision: 425387
upgpkg: haskell-hspec-discover 2.7.0-1
Modified:
haskell-hspec-discover/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-20 18:07:48 UTC (rev 425386)
+++ PKGBUILD 2019-01-20 18:24:34 UTC (rev 425387)
@@ -2,8 +2,8 @@
_hkgname=hspec-discover
pkgname=haskell-hspec-discover
-pkgver=2.5.5
-pkgrel=7
+pkgver=2.7.0
+pkgrel=1
pkgdesc="Automatically discover and run Hspec tests"
url="http://hspec.github.io/"
license=('MIT')
@@ -11,13 +11,19 @@
depends=('ghc-libs')
makedepends=('ghc' 'haskell-quickcheck' 'haskell-hspec-meta')
source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
-sha512sums=('922511709402a063eba16f2bb2b85e42b6183d8004d78af00ddf692cfcc6c3172c9ce925f395c28b04bbe2289693c437923bd769f0289e00c589890e4475700e')
+sha512sums=('a48be02b6c4c629a9c9957ab97a3363aaef982030090374a7536ce16a7140fe648273b4b963ce341aac3481f6069cfcf74c9ce017b25349233cca72e3637a0af')
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
runhaskell Setup register --gen-script
More information about the arch-commits
mailing list