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

Felix Yan felixonmars at archlinux.org
Wed Nov 29 05:15:48 UTC 2017


    Date: Wednesday, November 29, 2017 @ 05:15:46
  Author: felixonmars
Revision: 270547

upgpkg: haskell-shakespeare 2.0.14.1-1

rebuild with shakespeare,2.0.14.1

Modified:
  haskell-shakespeare/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-29 05:15:21 UTC (rev 270546)
+++ PKGBUILD	2017-11-29 05:15:46 UTC (rev 270547)
@@ -4,24 +4,24 @@
 
 _hkgname=shakespeare
 pkgname=haskell-shakespeare
-pkgver=2.0.14
-pkgrel=5
+pkgver=2.0.14.1
+pkgrel=1
 pkgdesc="A toolkit for making compile-time interpolated templates"
 url="http://www.yesodweb.com/book/shakespearean-templates"
 license=("MIT")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-aeson" "haskell-blaze-html" "haskell-blaze-markup" "haskell-exceptions"
-         "haskell-parsec" "haskell-scientific" "haskell-text"  "haskell-unordered-containers"
-         "haskell-vector")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-blaze-html' 'haskell-blaze-markup' 'haskell-exceptions'
+         'haskell-parsec' 'haskell-scientific' 'haskell-text' 'haskell-unordered-containers'
+         'haskell-vector')
+makedepends=('ghc' 'haskell-hspec' 'haskell-hunit')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('75c793d35ecc6d78085038ca74167293e2553d66585fafedbbf28e1b35ab3456acdd5aa13cd307b154ee398cf4c878c2216907fb56642995e082bfbb2bd189fe')
+sha512sums=('730e6200604c603cad5a7a857cd1871fd4b0db34dfefc9b5a85dce08060f7aee39fb82560fe8edac0444759eac8c7db1ad2570110c3d62f1b1d698fb79028a39')
 
 build() {
     cd "${srcdir}/${_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-test_roy -f-test_coffee -f-test_export
     runhaskell Setup build
@@ -31,9 +31,14 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
 package() {
     cd "${srcdir}/${_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"
     runhaskell Setup copy --destdir="${pkgdir}"



More information about the arch-commits mailing list