Date: Monday, March 12, 2018 @ 11:50:30
  Author: felixonmars
Revision: 306339

upgpkg: haskell-wai-logger 2.3.2-1

rebuild with wai-logger,2.3.2

Modified:
  haskell-wai-logger/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++++++----------
 1 file changed, 20 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-03-12 11:44:08 UTC (rev 306338)
+++ PKGBUILD    2018-03-12 11:50:30 UTC (rev 306339)
@@ -4,24 +4,29 @@
 
 _hkgname=wai-logger
 pkgname=haskell-wai-logger
-pkgver=2.3.1
-pkgrel=11
+pkgver=2.3.2
+pkgrel=1
 pkgdesc="A logging system for WAI"
 url="https://hackage.haskell.org/package/${_hkgname}";
 license=("custom:BSD3")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-blaze-builder" "haskell-byteorder" 
"haskell-case-insensitive"
-         "haskell-fast-logger" "haskell-http-types" "haskell-network" 
"haskell-unix-time"
-         "haskell-wai")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-byteorder' 'haskell-case-insensitive' 
'haskell-fast-logger'
+         'haskell-http-types' 'haskell-network' 'haskell-unix-time' 
'haskell-wai')
+makedepends=('ghc' 'haskell-doctest')
+checkdepends=('haskell-wai-extra')
 
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
-sha512sums=('250737dd326920efbb78dcd1ec270b49e53717091c95498b202452a95d0a811cc5757d32cebfcc8f0ba512c2e9d1c8994ca64a7426df2f1272225f6c276dd61e')
+sha512sums=('24a6e1a340b07781beeb8b7caa32743e3face2aa81d13cab64f311898c50e5824e128203e34608ef5511eb642cfe427dfb9ef281e10cf8675505fbea68cf2d3b')
 
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/doctest \[/doctest ["-dynamic", /' test/doctests.hs
+}
+
 build() {
-    cd "${srcdir}/${_hkgname}-${pkgver}"
+    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
     runhaskell Setup register --gen-script
@@ -30,8 +35,13 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
 package() {
-    cd "${srcdir}/${_hkgname}-${pkgver}"
+    cd $_hkgname-$pkgver
     
     install -D -m744 register.sh   
"${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
     install -D -m744 unregister.sh 
"${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"

Reply via email to