[arch-commits] Commit in haskell-hspec-core/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Jan 7 07:21:32 UTC 2018
Date: Sunday, January 7, 2018 @ 07:21:30
Author: felixonmars
Revision: 279793
upgpkg: haskell-hspec-core 2.4.6-1
rebuild with hspec-core,2.4.6 hspec,2.4.6 hspec-discover,2.4.6
Modified:
haskell-hspec-core/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-07 07:20:13 UTC (rev 279792)
+++ PKGBUILD 2018-01-07 07:21:30 UTC (rev 279793)
@@ -3,24 +3,24 @@
_hkgname=hspec-core
pkgname=haskell-hspec-core
-pkgver=2.4.4
-pkgrel=7
+pkgver=2.4.6
+pkgrel=1
pkgdesc="A Testing Framework for Haskell"
url="http://hspec.github.io/"
license=('MIT')
arch=('x86_64')
-depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-async' 'haskell-call-stack'
- 'haskell-hspec-expectations' 'haskell-hunit' 'haskell-quickcheck' 'haskell-quickcheck-io'
+depends=('ghc-libs' 'haskell-hunit' 'haskell-quickcheck' 'haskell-ansi-terminal' 'haskell-async'
+ 'haskell-call-stack' 'haskell-hspec-expectations' 'haskell-quickcheck-io'
'haskell-random' 'haskell-setenv' 'haskell-tf-random')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-hspec-meta' 'haskell-silently' 'haskell-temporary')
source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
-sha512sums=('7efb9c9f96cd4a3b406bc2d6af20b0b6369f7b40e569bef8ab6275e9a76a1e806e30bdd964a26589d5b6f374d203d536651fbe970b82000d25ddd49a7bd83367')
+sha512sums=('ca7291a4c8ceaabe186fd93c7f07c02bb70f7aadbf550dafd706cee9e8d741adab4467c344649cafe61424ca03914360fbaedccaed342a462e6a4bf0b1d1c943')
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
@@ -29,8 +29,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