[arch-commits] Commit in haskell-uuid/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat Mar 20 03:52:51 UTC 2021


    Date: Saturday, March 20, 2021 @ 03:52:50
  Author: felixonmars
Revision: 895667

upgpkg: haskell-uuid 1.3.14-1: rebuild with uuid 1.3.14, uuid-types 1.0.4

Modified:
  haskell-uuid/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-03-20 03:52:10 UTC (rev 895666)
+++ PKGBUILD	2021-03-20 03:52:50 UTC (rev 895667)
@@ -3,8 +3,8 @@
 
 _hkgname=uuid
 pkgname=haskell-uuid
-pkgver=1.3.13
-pkgrel=105
+pkgver=1.3.14
+pkgrel=1
 pkgdesc="For creating, comparing, parsing and printing Universally Unique Identifiers"
 url="https://github.com/aslatter/uuid"
 license=("BSD")
@@ -11,19 +11,16 @@
 arch=('x86_64')
 depends=('ghc-libs' "haskell-cryptohash-md5" "haskell-cryptohash-sha1" "haskell-entropy"
          "haskell-network-info" "haskell-random" "haskell-uuid-types")
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-tasty' 'haskell-tasty-hunit'
+             'haskell-tasty-quickcheck')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('e888e6350a32c6496b0b57384797925c78ab1c4dc674d296972981fa81338b4705d21a96960a63771aa5b9a785efd507ecaad195767dba7847fcab5ca7f3f923')
+sha512sums=('a72e8277235c56fec83b9d100348094a0cb4176b6d3cd68f699a903329bb2b8688db6f9daa1d75cafe56e49b6d1c3fc081237cda12b5e363b9aa2f7d0a33eda0')
 
-prepare() {
-    sed -i -e 's/time            >= 1.1      && < 1.8,/time            >= 1.1,/' -e 's/<.*0.4/<1/;s/< *1.2/<2/' $_hkgname-$pkgver/$_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
@@ -32,6 +29,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