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

Felix Yan felixonmars at archlinux.org
Tue Jan 2 17:08:44 UTC 2018


    Date: Tuesday, January 2, 2018 @ 17:08:44
  Author: felixonmars
Revision: 277786

upgpkg: haskell-test-framework 0.8.2.0-1

rebuild with test-framework,0.8.2.0

Modified:
  haskell-test-framework/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-02 16:53:40 UTC (rev 277785)
+++ PKGBUILD	2018-01-02 17:08:44 UTC (rev 277786)
@@ -4,29 +4,25 @@
 
 _hkgname=test-framework
 pkgname=haskell-test-framework
-pkgver=0.8.1.1
-pkgrel=16
+pkgver=0.8.2.0
+pkgrel=1
 pkgdesc="Framework for running and organising tests, with HUnit and QuickCheck support"
 url="https://batterseapower.github.io/test-framework/"
 license=("custom:BSD3")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-ansi-terminal" "haskell-ansi-wl-pprint" "haskell-hostname"
-         "haskell-old-locale" "haskell-random" "haskell-regex-posix" "haskell-xml")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-ansi-wl-pprint' 'haskell-hostname'
+         'haskell-old-locale' 'haskell-random' 'haskell-regex-posix' 'haskell-xml')
+makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-libxml' 'haskell-semigroups')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('7fd6015a0469623d2738c2a8d14c6b3a356c9463084a1b471f1c1b7b75bd33796ae8a0c01731e7b87dfa345be16bbeb262fcb1cdd4d8f1fdabd79c45f3570cbd')
+sha512sums=('d8e7ea274819a1b49b9f938df527d22c808f456d25b84f03173ed57dddd39c230fb037a57ce90c38f571801ee38e86bed6826df1c93f184e4a803c72ce5f41e4')
 
-prepare() {
-    sed -i 's/time >= 1.1.2 && < 1.6,/time >= 1.1.2,/' ${_hkgname}-${pkgver}/${_hkgname}.cabal
-}
-
 build() {
     cd "${srcdir}/${_hkgname}-${pkgver}"
 
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
         --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
-        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
-            -f-tests
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+    # --enable-tests \  Doesn't work with new QuickCheck
     runhaskell Setup build
     runhaskell Setup register --gen-script
     runhaskell Setup unregister --gen-script
@@ -34,6 +30,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