[arch-commits] Commit in haskell-colour/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Dec 4 16:39:32 UTC 2017
Date: Monday, December 4, 2017 @ 16:39:31
Author: felixonmars
Revision: 272122
upgpkg: haskell-colour 2.3.4-1
rebuild with colour,2.3.4
Modified:
haskell-colour/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-04 15:37:47 UTC (rev 272121)
+++ PKGBUILD 2017-12-04 16:39:31 UTC (rev 272122)
@@ -4,22 +4,23 @@
_hkgname=colour
pkgname=haskell-colour
-pkgver=2.3.3
-pkgrel=6
+pkgver=2.3.4
+pkgrel=1
pkgdesc="A model for human colour/color perception"
url="https://hackage.haskell.org/package/${_hkgname}"
license=("MIT")
arch=('x86_64')
depends=('ghc-libs')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-random' 'haskell-test-framework'
+ 'haskell-test-framework-quickcheck2')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('3498215698c3c4010a2bcb6ef87ad263f5a5425167751730919363a0e6806a5c8c2ba82b403b7898addd74feaa756c9df339a37a2b2f2d727680c14ffc21ccf8')
+sha512sums=('c475ed5ced7bcf749facfacf609d2b89a04f496bd6a7301259aa14cbfe6e768d65495f09b046b80f448b27478323a52cc2414954934985259e6f115325d17f9a')
build() {
cd "${srcdir}/${_hkgname}-${pkgver}"
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" --enable-tests \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
runhaskell Setup register --gen-script
@@ -28,6 +29,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