Date: Wednesday, April 4, 2018 @ 17:42:06
  Author: felixonmars
Revision: 314174

upgpkg: darcs 2.14.0-1

Modified:
  darcs/trunk/PKGBUILD

----------+
 PKGBUILD |   38 ++++++++++++++++++++++----------------
 1 file changed, 22 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-04-04 16:57:33 UTC (rev 314173)
+++ PKGBUILD    2018-04-04 17:42:06 UTC (rev 314174)
@@ -3,11 +3,11 @@
 # Contributor: Arch Haskell Team <arch-hask...@haskell.org>
 
 pkgname=darcs
-pkgver=2.12.5.20170909
-pkgrel=67
+pkgver=2.14.0
+pkgrel=1
 pkgdesc="A distributed, interactive, smart revision control system"
 url="http://darcs.net";
-license=("GPL")
+license=("GPL2")
 arch=('x86_64')
 depends=('curl' 'ghc-libs' 'haskell-async' 'haskell-attoparsec' 
'haskell-base16-bytestring'
          'haskell-cryptohash' 'haskell-data-ordlist' 'haskell-fgl' 
'haskell-graphviz'
@@ -14,20 +14,21 @@
          'haskell-hashable' 'haskell-html' 'haskell-http' 'haskell-knob' 
'haskell-mmap'
          'haskell-mtl' 'haskell-network' 'haskell-network-uri' 
'haskell-old-time' 'haskell-parsec'
          'haskell-sandi' 'haskell-random' 'haskell-regex-applicative' 
'haskell-regex-compat-tdfa'
-         'haskell-tar' 'haskell-text' 'haskell-unix-compat' 
'haskell-utf8-string' 'haskell-vector'
-         'haskell-zip-archive' 'haskell-zlib')
-makedepends=('ghc')
-# Fetched from http://darcs.net/reviewed/reviewed.zip
-source=("https://pkgbuild.com/~felixonmars/sources/darcs-2.12.5.20170909.zip";)
-#source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";)
-sha256sums=('64f44e9d9727b8f7e00402a8a5dde9b6dc8f103776c4decef90b28af9603830f')
+         'haskell-stm' 'haskell-tar' 'haskell-text' 'haskell-unix-compat' 
'haskell-utf8-string'
+         'haskell-vector' 'haskell-zip-archive' 'haskell-zlib')
+makedepends=('ghc' 'haskell-cmdargs' 'haskell-findbin' 'haskell-hunit' 
'haskell-quickcheck'
+             'haskell-shelly' 'haskell-split' 'haskell-test-framework'
+             'haskell-test-framework-hunit' 
'haskell-test-framework-quickcheck2')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";)
+sha512sums=('a9c90b4d1a5caa395682405123702452a45382771795a5bd5c8d1a6816ca4411ca0bebc9188e9b396774e7db75289c73de9630dac388070d140ce20e7537fd46')
 
 prepare() {
-    mv reviewed $pkgname-$pkgver
-    sed -e 's/graphviz     >= 2999.18.1 && < 2999.19,/graphviz     >= 
2999.18.1,/' \
-        -e 's/process      >= 1.2.3.0 && < 1.5.0.0,/process      >= 1.2.3.0,/' 
\
-        -e 's/time         >= 1.5.0.1 && < 1.8,/time         >= 1.5.0.1,/' \
-        -i $pkgname-$pkgver/darcs.cabal
+    cd $pkgname-$pkgver
+    sed -i 's/shelly       >= 1.6.8 && < 1.7,/shelly       >= 1.6.8,/' 
$pkgname.cabal
+
+    sed -e 's/^ghc /ghc -dynamic /' \
+        -e 's/ ghc / ghc -dynamic /' \
+        -i tests/*.sh tests/lib
 }
 
 build() {
@@ -34,7 +35,7 @@
     cd $pkgname-$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 \
         -fcurl -fpkgconfig -f-static -fterminfo -fthreaded -fexecutable \
         -f-rts -foptimize -f-warn-as-error -f-libiconv
@@ -45,6 +46,11 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $pkgname-$pkgver
+    runhaskell Setup test
+}
+
 package() {
     cd $pkgname-$pkgver
 

Reply via email to