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

Felix Yan felixonmars at archlinux.org
Wed May 20 18:25:23 UTC 2020


    Date: Wednesday, May 20, 2020 @ 18:25:23
  Author: felixonmars
Revision: 630943

upgpkg: haskell-snap-server 1.1.1.2-1: rebuild with snap-server 1.1.1.2

Modified:
  haskell-snap-server/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-20 18:22:57 UTC (rev 630942)
+++ PKGBUILD	2020-05-20 18:25:23 UTC (rev 630943)
@@ -2,8 +2,8 @@
 
 _hkgname=snap-server
 pkgname=haskell-snap-server
-pkgver=1.1.1.1
-pkgrel=203
+pkgver=1.1.1.2
+pkgrel=1
 pkgdesc="A web server for the Snap Framework"
 url="https://github.com/snapframework/snap-server"
 license=('BSD')
@@ -18,21 +18,22 @@
               'haskell-http-common' 'haskell-parallel' '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=('ed39f3ab22880b4651173c5942b10d17d8b3ecf734bd3e3c1724e8fe90303a41fb69543bf4e4868416bf596db34584c17065d960d07f0247364aca8a6f20bab1')
+sha512sums=('a11bb92ce8774269704ce8c045bddf4aad15816cfb447453e8010bfce7aff2a08b38d3c99a400ab3882cb9e0b2f0b1f9af69adc56c1b28df53dc3fdd44042e30')
 
 prepare() {
     cd $_hkgname-$pkgver
-    sed -i -e '/bytestring-builder/d' -e 's/< *0.8/<1/' -e 's/< *4/<5/' -e 's/< *3.1/<4/' $_hkgname.cabal
+    sed -i -e '/bytestring-builder/d' $_hkgname.cabal
+    echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
 }
 
 build() {
     cd $_hkgname-$pkgver
     
-    #if (( CHECKFUNC )); then
-    #    _opts=('--enable-tests')
-    #else
-    #    _opts=('--disable-tests')
-    #fi
+    if (( CHECKFUNC )); then
+        _opts=('--enable-tests')
+    else
+        _opts=('--disable-tests')
+    fi
 
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
         --prefix=/usr --docdir=/usr/share/doc/$pkgname "${_opts[@]}" \
@@ -46,7 +47,7 @@
 
 check() {
     cd $_hkgname-$pkgver
-    #runhaskell Setup test
+    runhaskell Setup test
 }
 
 package() {



More information about the arch-commits mailing list