Date: Tuesday, March 13, 2018 @ 16:25:01
  Author: felixonmars
Revision: 307395

upgpkg: haskell-websockets 0.12.4.0-1

rebuild with websockets,0.12.4.0

Modified:
  haskell-websockets/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++++----------
 1 file changed, 21 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-03-13 16:18:22 UTC (rev 307394)
+++ PKGBUILD    2018-03-13 16:25:01 UTC (rev 307395)
@@ -4,24 +4,30 @@
 
 _hkgname=websockets
 pkgname=haskell-websockets
-pkgver=0.12.3.1
-pkgrel=19
+pkgver=0.12.4.0
+pkgrel=1
 pkgdesc="A sensible and clean way to write WebSocket-capable servers in 
Haskell."
 url="https://hackage.haskell.org/package/${_hkgname}";
 license=("custom:BSD3")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-attoparsec" "haskell-base64-bytestring" 
"haskell-blaze-builder"
-         "haskell-case-insensitive" "haskell-entropy" "haskell-network" 
"haskell-random"
-         "haskell-sha" "haskell-streaming-commons" "haskell-text")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-attoparsec' 'haskell-base64-bytestring' 
'haskell-case-insensitive'
+         'haskell-entropy' 'haskell-network' 'haskell-random' 'haskell-sha'
+         'haskell-streaming-commons' 'haskell-text')
+makedepends=('ghc' 'haskell-hunit' 'haskell-test-framework' 
'haskell-test-framework-hunit'
+             'haskell-test-framework-quickcheck2')
 
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
-sha512sums=('62a08ae9e257fad836be0bdfb0e652da807985416a9a298e9bbfe1750252016aaaf0d793e28b5ee4cf51ee9e2dac716a1ed773d5bf9433f9089d106d52fccb5d')
+sha512sums=('9d2a7ff8ed5fa2fb69469e55024f76b9c9bd79d36e42f774d8a4e88c629e0b2b5617f6987653cc6270b941dbf9b6ec5fcbc28c42e0770714f6a2b0f3e4477964')
 
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i '/bytestring-builder/d' $_hkgname.cabal
+}
+
 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-Example
     runhaskell Setup build
@@ -31,8 +37,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