[arch-commits] Commit in haskell-gauge/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Jan 6 08:28:57 UTC 2018
Date: Saturday, January 6, 2018 @ 08:28:56
Author: felixonmars
Revision: 279399
upgpkg: haskell-gauge 0.2.0-1
Modified:
haskell-gauge/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-06 08:28:06 UTC (rev 279398)
+++ PKGBUILD 2018-01-06 08:28:56 UTC (rev 279399)
@@ -4,24 +4,25 @@
_hkgname=gauge
pkgname=haskell-gauge
-pkgver=0.1.3
-pkgrel=2
+pkgver=0.2.0
+pkgrel=1
pkgdesc="Small framework for performance measurement and analysis"
url="https://github.com/vincenthz/hs-gauge"
license=("custom:BSD3")
arch=('x86_64')
-depends=('ghc-libs' 'haskell-basement' 'haskell-code-page' 'haskell-mwc-random' 'haskell-vector'
+depends=('ghc-libs' 'haskell-basement' 'haskell-mwc-random' 'haskell-vector'
'haskell-math-functions')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-hunit' 'haskell-tasty' 'haskell-tasty-hunit')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('ae72fefea78bd380f89d6da34cb91c0cf8446c0057ae8c4aecd2b64e07fff9d46b8c07ada313d5e4ff02937139abcc63c1ed3a14576ea45ec0773413cd1edea9')
+sha512sums=('33bc1f092f4afe05ee55929700a0fa87b23a704351770516fbb38767d03d98ee492c1651dcc3d24dda22449449e76ad2f6bfc8966d3c7716a1e394e68f5987a8')
build() {
cd "${srcdir}/${_hkgname}-${pkgver}"
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
- --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -fanalysis
runhaskell Setup build
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
@@ -29,6 +30,11 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
cd "${srcdir}/${_hkgname}-${pkgver}"
More information about the arch-commits
mailing list