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

Felix Yan felixonmars at archlinux.org
Wed Nov 22 04:25:24 UTC 2017


    Date: Wednesday, November 22, 2017 @ 04:25:23
  Author: felixonmars
Revision: 267857

upgpkg: haskell-yesod-persistent 1.4.3-1

rebuild with yesod-persistent,1.4.3

Modified:
  haskell-yesod-persistent/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-22 04:23:03 UTC (rev 267856)
+++ PKGBUILD	2017-11-22 04:25:23 UTC (rev 267857)
@@ -4,8 +4,8 @@
 
 _hkgname=yesod-persistent
 pkgname=haskell-yesod-persistent
-pkgver=1.4.2
-pkgrel=101
+pkgver=1.4.3
+pkgrel=1
 pkgdesc="Some helpers for using Persistent from Yesod."
 url="http://www.yesodweb.com/"
 license=("MIT")
@@ -13,19 +13,15 @@
 depends=('ghc-libs' "haskell-blaze-builder" "haskell-conduit" "haskell-persistent"
          "haskell-persistent-template" "haskell-resource-pool" "haskell-resourcet"
          "haskell-yesod-core")
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-hspec' 'haskell-wai-extra' 'haskell-persistent-sqlite' 'haskell-text')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha256sums=('d938894209e27a7f2a6e41906a9db02cf5c66df2236a864361571ba4e63b1056')
+sha512sums=('d609ed1f49d11936fb162eb643006b0e2bebe707a1d94e595d38b568769b30bb507f368fbf2801330f34824609e60e9230db3a24b7ca51b6a13f29b6cbd9af9b')
 
-prepare() {
-    sed -i 's/, persistent                >= 2.1      && < 2.7/, persistent                >= 2.1      \&\& < 2.8/' ${_hkgname}-${pkgver}/${_hkgname}.cabal
-}
-
 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
     runhaskell Setup build
     runhaskell Setup register --gen-script
@@ -34,6 +30,11 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    runhaskell Setup test
+}
+
 package() {
     cd "${srcdir}/${_hkgname}-${pkgver}"
 


More information about the arch-commits mailing list