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

Felix Yan felixonmars at archlinux.org
Wed Mar 15 05:39:04 UTC 2017


    Date: Wednesday, March 15, 2017 @ 05:39:03
  Author: felixonmars
Revision: 216366

upgpkg: haskell-either 4.4.1.1-13

rebuild with MonadRandom,0.5.1

Modified:
  haskell-either/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-15 03:48:10 UTC (rev 216365)
+++ PKGBUILD	2017-03-15 05:39:03 UTC (rev 216366)
@@ -5,7 +5,7 @@
 _hkgname=either
 pkgname=haskell-either
 pkgver=4.4.1.1
-pkgrel=12
+pkgrel=13
 pkgdesc="An either monad transformer"
 url="http://github.com/ekmett/either/"
 license=("custom:BSD3")
@@ -17,9 +17,13 @@
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha256sums=('b087cb0fb63fec2fbdcac05fef0d03751daef5deb86cda3c732b9a6a31e634d3')
 
+prepare() {
+    sed -i 's/MonadRandom       >= 0.1     && < 0.5,/MonadRandom       >= 0.1     \&\& < 0.6,/' ${_hkgname}-${pkgver}/${_hkgname}.cabal
+}
+
 build() {
     cd "${srcdir}/${_hkgname}-${pkgver}"
-    
+
     runhaskell Setup configure -O --enable-library-profiling --enable-shared \
         --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
         --libsubdir=\$compiler/site-local/\$pkgid
@@ -33,7 +37,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