[arch-commits] Commit in haskell-hspec-smallcheck/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Jan 17 18:35:35 UTC 2018
Date: Wednesday, January 17, 2018 @ 18:35:34
Author: felixonmars
Revision: 283753
upgpkg: haskell-hspec-smallcheck 0.5.0-1
rebuild with hspec-smallcheck,0.5.0
Modified:
haskell-hspec-smallcheck/trunk/PKGBUILD
----------+
PKGBUILD | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-17 18:20:58 UTC (rev 283752)
+++ PKGBUILD 2018-01-17 18:35:34 UTC (rev 283753)
@@ -3,22 +3,22 @@
_hkgname=hspec-smallcheck
pkgname=haskell-hspec-smallcheck
-pkgver=0.4.2
-pkgrel=21
+pkgver=0.5.0
+pkgrel=1
pkgdesc="SmallCheck support for the Hspec testing framework"
url="http://hspec.github.io/"
license=('MIT')
arch=('x86_64')
-depends=('ghc-libs' 'haskell-hspec-core' 'haskell-smallcheck')
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-call-stack' 'haskell-hspec-core' 'haskell-hunit' 'haskell-smallcheck')
+makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck')
source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
-sha512sums=('48c1c07b749bb0fcde241e9b7c1dfbab7353e9d7bd796997258fb72386178e21e9b059dcf5fc15363cfb25825af2917b2e1e5674f32a530c4cf10576e6fde93d')
+sha512sums=('7f793866d11795bd7e790b08c3754735df5cfd376a7adb892d7a5f011e20c64efa9f153a294a6e3c32e3410a26de3d6d398b2880bcba584d902b9c9a6f7b574b')
build() {
- cd "${srcdir}/${_hkgname}-${pkgver}"
+ cd $_hkgname-$pkgver
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
runhaskell Setup register --gen-script
@@ -27,8 +27,13 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
- cd "${srcdir}/${_hkgname}-${pkgver}"
+ cd $_hkgname-$pkgver
install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
More information about the arch-commits
mailing list