[arch-commits] Commit in haskell-statistics/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Jan 26 10:12:34 UTC 2019
Date: Saturday, January 26, 2019 @ 10:12:34
Author: felixonmars
Revision: 428059
upgpkg: haskell-statistics 0.15.0.0-1
rebuild with statistics 0.15.0.0
Modified:
haskell-statistics/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++++--------------
1 file changed, 17 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-26 10:04:15 UTC (rev 428058)
+++ PKGBUILD 2019-01-26 10:12:34 UTC (rev 428059)
@@ -3,29 +3,27 @@
_hkgname=statistics
pkgname=haskell-statistics
-pkgver=0.14.0.2
-pkgrel=94
+pkgver=0.15.0.0
+pkgrel=1
pkgdesc="A library of statistical types, data, and functions"
url="https://github.com/bos/statistics"
-license=("custom:BSD2")
+license=("BSD")
arch=('x86_64')
-depends=('ghc-libs' "haskell-aeson" "haskell-base-orphans" "haskell-erf" "haskell-math-functions"
- "haskell-monad-par" "haskell-mwc-random" "haskell-primitive" "haskell-vector"
- "haskell-vector-algorithms" "haskell-vector-binary-instances" "haskell-vector-th-unbox")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-base-orphans' 'haskell-data-default-class'
+ 'haskell-dense-linear-algebra' 'haskell-math-functions' 'haskell-monad-par'
+ 'haskell-mwc-random' 'haskell-primitive' 'haskell-vector' 'haskell-vector-algorithms'
+ 'haskell-vector-binary-instances' 'haskell-vector-th-unbox')
+makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-erf' 'haskell-ieee754'
+ 'haskell-test-framework' 'haskell-test-framework-hunit'
+ 'haskell-test-framework-quickcheck2')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('8ee0d6ae6f7a27b4b5a6dddd1e2c9a9b086224cfb7157efc396052263c5c89aea5eeb625a312e0c08f78cee3d819cdaa139f5a7bfc4413847592db45b1b697e4')
+sha512sums=('89b44ab8662308dc17769c47c9791b1b673fd37363483333ef0e005b0e00ec120145ee8a1174d2e5a92fdb6e00fd441e389407cdcbd99c55b6523cc79ba82949')
-prepare() {
- cd $_hkgname-$pkgver
- sed -i 's/<.*0.7/<1/' $_hkgname.cabal
-}
-
build() {
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
@@ -34,6 +32,11 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test || warning "Tests failed"
+}
+
package() {
cd $_hkgname-$pkgver
More information about the arch-commits
mailing list