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

Felix Yan felixonmars at archlinux.org
Thu Jun 22 18:25:29 UTC 2017


    Date: Thursday, June 22, 2017 @ 18:25:28
  Author: felixonmars
Revision: 239645

upgpkg: haskell-xml-hamlet 0.4.1-32

rebuild with xml-conduit,1.5.1

Modified:
  haskell-xml-hamlet/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-22 18:25:08 UTC (rev 239644)
+++ PKGBUILD	2017-06-22 18:25:28 UTC (rev 239645)
@@ -5,22 +5,27 @@
 _hkgname=xml-hamlet
 pkgname=haskell-xml-hamlet
 pkgver=0.4.1
-pkgrel=31
+pkgrel=32
 pkgdesc="Hamlet-style quasiquoter for XML content"
 url="http://www.yesodweb.com/"
 license=("custom:BSD3")
 arch=('i686' 'x86_64')
-depends=("ghc" "haskell-parsec" "haskell-shakespeare" "haskell-text"
+depends=('ghc' "haskell-parsec" "haskell-shakespeare" "haskell-text"
          "haskell-xml-conduit")
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha256sums=('7df390f59599a0b16831c3f2cbb13ad0bebb92faa4a350fc6ae613bfba4ec2bb')
 
+prepare() {
+    sed -i 's/, xml-conduit                >= 1.0      && < 1.5/, xml-conduit                >= 1.0      \&\& < 1.6/' \
+        ${_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}" \
-        --libsubdir=\$compiler/site-local/\$pkgid
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
     runhaskell Setup build
     runhaskell Setup haddock --hoogle --html
     runhaskell Setup register --gen-script



More information about the arch-commits mailing list