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

Felix Yan felixonmars at archlinux.org
Tue Apr 20 15:28:10 UTC 2021


    Date: Tuesday, April 20, 2021 @ 15:28:10
  Author: felixonmars
Revision: 920051

upgpkg: haskell-http2 3.0.0-1: rebuild with http2 3.0.0

Modified:
  haskell-http2/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++++++++---------
 1 file changed, 22 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-20 14:48:34 UTC (rev 920050)
+++ PKGBUILD	2021-04-20 15:28:10 UTC (rev 920051)
@@ -3,20 +3,33 @@
 
 _hkgname=http2
 pkgname=haskell-http2
-pkgver=2.0.6
-pkgrel=24
+pkgver=3.0.0
+pkgrel=1
 pkgdesc="HTTP/2 library"
 url="https://github.com/kazu-yamamoto/http2"
 license=("BSD")
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-case-insensitive' 'haskell-http-types' 'haskell-network'
-         'haskell-network-byte-order' 'haskell-psqueues' 'haskell-time-manager')
-makedepends=('ghc' 'haskell-aeson' 'haskell-aeson-pretty' 'haskell-base16-bytestring'
-             'haskell-doctest' 'haskell-glob' 'haskell-hspec' 'haskell-unordered-containers'
-             'haskell-vector')
-source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('5bbee07c856efb76b74e7ed00e3a13c6e4e5cc8750751e5d35103f99cedbfde5bc433b0c5879bf93cfd327dee0ab61b9a58cbc5526364a0cb204ee3f560f741a')
+         'haskell-network-byte-order' 'haskell-psqueues' 'haskell-time-manager'
+         'haskell-unix-time')
+makedepends=('ghc' 'haskell-async' 'haskell-aeson' 'haskell-aeson-pretty'
+             'haskell-base16-bytestring' 'haskell-cryptonite' 'haskell-glob' 'haskell-hspec'
+             'haskell-hspec-discover' 'haskell-network-run' 'haskell-typed-process'
+             'haskell-unordered-containers' 'haskell-vector')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+        https://raw.githubusercontent.com/kazu-yamamoto/http2/a4182a02fb97a0a207ffa8f6194c8c107ee68cef/test/inputFile)
+sha512sums=('48d60e3e8eca3f1a3fefab7f946be9766dbceafad84f989eb12ad915a626eed5367b2a88aee95acd870e68b92c3d0c3e588a10a7748e358bad456e8daf0c1ecf'
+            '66c37f0611cd8bc91b65b958a87fa063290fc4b7bf08a69ff587ccccdcdec46570fda493e51d1ae6f12e50499a615032c414c69a4cec97a5c02d495b5db223de')
 
+prepare() {
+    cd $_hkgname-$pkgver
+    # Choose another port to bind, 8080 is too easy to conflict with build host
+    sed -i 's/"8080"/"59824"/' test2/ServerSpec.hs test/HTTP2/ServerSpec.hs
+
+    # https://github.com/kazu-yamamoto/http2/issues/23
+    mv ../inputFile test/
+}
+
 build() {
     cd $_hkgname-$pkgver
 
@@ -33,7 +46,7 @@
 
 check() {
     cd $_hkgname-$pkgver
-    runhaskell Setup test
+    runhaskell Setup test --show-details=direct
 }
 
 package() {



More information about the arch-commits mailing list