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

Felix Yan felixonmars at archlinux.org
Mon Aug 14 06:49:39 UTC 2017


    Date: Monday, August 14, 2017 @ 06:49:38
  Author: felixonmars
Revision: 250195

upgpkg: haskell-persistent-template 2.5.2-51

rebuild with aeson,1.2.1.0

Modified:
  haskell-persistent-template/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-14 06:33:47 UTC (rev 250194)
+++ PKGBUILD	2017-08-14 06:49:38 UTC (rev 250195)
@@ -5,7 +5,7 @@
 _hkgname=persistent-template
 pkgname=haskell-persistent-template
 pkgver=2.5.2
-pkgrel=50
+pkgrel=51
 pkgdesc="Type-safe, non-relational, multi-backend persistence"
 url="http://www.yesodweb.com/book/persistent"
 license=("MIT")
@@ -16,9 +16,13 @@
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha256sums=('de695b008158f9ae66d103fc33f89c098ebcf59337367063d9f4f816a58b4011')
 
+prepare() {
+    sed -i 's/, aeson                    >= 0.7       && < 1.2/, aeson                    >= 0.7       \&\& < 1.3/' ${_hkgname}-${pkgver}/${_hkgname}.cabal
+}
+
 build() {
     cd "${srcdir}/${_hkgname}-${pkgver}"
-    
+
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
         --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
@@ -32,7 +36,7 @@
 
 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"
     install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"



More information about the arch-commits mailing list