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

Felix Yan felixonmars at archlinux.org
Wed Jan 24 17:36:40 UTC 2018


    Date: Wednesday, January 24, 2018 @ 17:36:39
  Author: felixonmars
Revision: 286556

upgpkg: haskell-warp 3.2.15-1

rebuild with warp,3.2.15

Modified:
  haskell-warp/trunk/PKGBUILD

----------+
 PKGBUILD |   32 +++++++++++++++++++-------------
 1 file changed, 19 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-24 17:17:33 UTC (rev 286555)
+++ PKGBUILD	2018-01-24 17:36:39 UTC (rev 286556)
@@ -4,30 +4,31 @@
 
 _hkgname=warp
 pkgname=haskell-warp
-pkgver=3.2.13
-pkgrel=16
+pkgver=3.2.15
+pkgrel=1
 pkgdesc="A fast, light-weight web server for WAI applications."
 url="https://github.com/yesodweb/wai"
 license=("MIT")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-async" "haskell-auto-update" "haskell-blaze-builder"
-         "haskell-case-insensitive" "haskell-hashable" "haskell-http-date" "haskell-http-types"
-         "haskell-http2" "haskell-iproute" "haskell-network" "haskell-simple-sendfile" "haskell-stm"
-         "haskell-streaming-commons" "haskell-text" "haskell-unix-compat" "haskell-vault"
-         "haskell-wai" "haskell-word8")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-async' 'haskell-auto-update' 'haskell-blaze-builder'
+         'haskell-case-insensitive' 'haskell-hashable' 'haskell-http-date' 'haskell-http-types'
+         'haskell-http2' 'haskell-iproute' 'haskell-network' 'haskell-simple-sendfile' 'haskell-stm'
+         'haskell-streaming-commons' 'haskell-text' 'haskell-unix-compat' 'haskell-vault'
+         'haskell-wai' 'haskell-word8')
+makedepends=('ghc' 'haskell-doctest' 'haskell-http-client' 'haskell-hspec' 'haskell-hunit'
+             'haskell-lifted-base' 'haskell-quickcheck' 'haskell-silently')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('598b1a3d2521a483001602c059685f28e5c1ed6729e35243c82b98e879cc4d448dd5b42542bef3b3df9d1181c829e3fc582fa1454f9c4daada44961bc5c6546e')
+sha512sums=('37e1a733a37fa0a3b5fcc2dae45bb73a7b62e8db45f1c1993a42cdab9495026c7f19d1aa0947b649e02cc2962d0c04ba825ba07c52e88ba79c13c675b02d81ee')
 
 prepare() {
-    sed -i '/bytestring-builder/d' $_hkgname-$pkgver/$_hkgname.cabal
+    sed -i 's/"Network"/"Network", "-dynamic"/' $_hkgname-$pkgver/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 \
             -f-warp-debug -fallow-sendfilefd -f-network-bytestring
     runhaskell Setup build
@@ -37,8 +38,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"



More information about the arch-commits mailing list