[arch-commits] Commit in haskell-text-metrics/trunk (PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Sat Aug 21 05:07:35 UTC 2021
Date: Saturday, August 21, 2021 @ 05:07:35
Author: felixonmars
Revision: 1004057
upgpkg: haskell-text-metrics 0.3.1-1: rebuild with text-metrics 0.3.1
Modified:
haskell-text-metrics/trunk/PKGBUILD
----------+
PKGBUILD | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-08-21 04:56:13 UTC (rev 1004056)
+++ PKGBUILD 2021-08-21 05:07:35 UTC (rev 1004057)
@@ -2,27 +2,22 @@
_hkgname=text-metrics
pkgname=haskell-text-metrics
-pkgver=0.3.0
-pkgrel=151
+pkgver=0.3.1
+pkgrel=1
pkgdesc="Calculate various string metrics efficiently"
url="https://github.com/mrkkrp/text-metrics"
license=('BSD')
arch=('x86_64')
depends=('ghc-libs' 'haskell-vector')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-hspec')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('fa005ad7aeb5fd96ce121c5eab9e83e5826eec288a269f6ce258b3f6aff408c8ca98b8131b6cd14fa8e56f8568eb5a63beb63935335b7c695a3f6e09a979eccf')
+sha512sums=('c6a022e14ad2cd619881544fbda638323e8b0e177e3f40576b565afdd49c015188d9c5fc35687eea17d0540a286ab4df4e82391331d96eee66c236977b8a0be8')
-prepare() {
- cd $_hkgname-$pkgver
- sed -i 's/< *0.6/<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 $MAKEFLAGS
runhaskell Setup register --gen-script
@@ -31,6 +26,11 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test --show-details=direct
+}
+
package() {
cd $_hkgname-$pkgver
More information about the arch-commits
mailing list