[arch-commits] Commit in haskell-cryptohash-sha256/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Jan 25 18:04:05 UTC 2021
Date: Monday, January 25, 2021 @ 18:04:05
Author: felixonmars
Revision: 829709
upgpkg: haskell-cryptohash-sha256 0.11.102.0-1: rebuild with cryptohash-sha256 0.11.102.0
Modified:
haskell-cryptohash-sha256/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-25 17:49:54 UTC (rev 829708)
+++ PKGBUILD 2021-01-25 18:04:05 UTC (rev 829709)
@@ -3,20 +3,21 @@
_hkgname=cryptohash-sha256
pkgname=haskell-cryptohash-sha256
-pkgver=0.11.101.0
-pkgrel=38
+pkgver=0.11.102.0
+pkgrel=1
pkgdesc="Fast, pure and practical SHA-256 implementation"
url="https://github.com/hvr/cryptohash-sha256"
license=("BSD")
arch=('x86_64')
depends=('ghc-libs' 'haskell-base16-bytestring')
-makedepends=('ghc' 'uusi')
+makedepends=('ghc' 'uusi' 'haskell-sha' 'haskell-tasty' 'haskell-tasty-hunit'
+ 'haskell-tasty-quickcheck')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('c755f1354fb5f1d6cfb54f73e39692392517954118d98b39ac4be7460e75a9ddc91ad641fed0f17e5fa33b62b7b0734af66526ea757e00716832572bb383c612')
+sha512sums=('d55663f24c9c24370c85b2cd22a8aceff6c81de5ee278bc85ebef35868310a0df02dedf8247c201d0c086172845def4a910650756ce225385f2e5801ac1019c7')
prepare() {
cd $_hkgname-$pkgver
- uusi -u base -u base16-bytestring $_hkgname.cabal
+ uusi -u tasty $_hkgname.cabal
}
build() {
@@ -23,7 +24,7 @@
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 \
-fexe
runhaskell Setup build $MAKEFLAGS
@@ -33,6 +34,11 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
cd $_hkgname-$pkgver
More information about the arch-commits
mailing list