[arch-commits] Commit in haskell-wai-middleware-static/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 21:14:41 UTC 2020


    Date: Monday, November 9, 2020 @ 21:14:41
  Author: felixonmars
Revision: 748248

upgpkg: haskell-wai-middleware-static 0.9.0-1: rebuild with wai-middleware-static 0.9.0

Modified:
  haskell-wai-middleware-static/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-09 21:03:22 UTC (rev 748247)
+++ PKGBUILD	2020-11-09 21:14:41 UTC (rev 748248)
@@ -3,8 +3,8 @@
 
 _hkgname=wai-middleware-static
 pkgname=haskell-wai-middleware-static
-pkgver=0.8.3
-pkgrel=73
+pkgver=0.9.0
+pkgrel=1
 pkgdesc="WAI middleware that serves requests to static files"
 url="https://github.com/scotty-web/wai-middleware-static"
 license=("BSD")
@@ -11,9 +11,10 @@
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-cryptonite' 'haskell-memory' 'haskell-expiring-cache-map'
          'haskell-http-types' 'haskell-mime-types' 'haskell-old-locale' 'haskell-wai')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-hspec' 'haskell-hspec-discover' 'haskell-hspec-expectations-lifted'
+             'haskell-hspec-wai' 'haskell-mockery' 'haskell-scotty' 'haskell-wai-extra')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('805dc8596542158c64deed3a49456c532786b6695530f45b74bf1d153b4e84e68f362c5a86adb6038f70258c7e916bf5f9f4c0fffa08456eacd08b02bde02f1a')
+sha512sums=('4833afa649ed2e9604f396481dbf5e1f4d96db841fb9c300a9c0b66641241c12c14d8e010860626a3d4bf00507fa0b28b5480d37ac1f8d6daa1c3e96685b654c')
 
 prepare() {
     cd $_hkgname-$pkgver
@@ -24,7 +25,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
     runhaskell Setup build $MAKEFLAGS
     runhaskell Setup register --gen-script
@@ -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