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

Felix Yan fyan at archlinux.org
Wed May 25 15:38:29 UTC 2016


    Date: Wednesday, May 25, 2016 @ 17:38:28
  Author: fyan
Revision: 176997

upgpkg: haskell-base-prelude 1.0.1.1-2

fix registration

Modified:
  haskell-base-prelude/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-05-25 15:38:12 UTC (rev 176996)
+++ PKGBUILD	2016-05-25 15:38:28 UTC (rev 176997)
@@ -5,7 +5,7 @@
 _hkgname=base-prelude
 pkgname=haskell-base-prelude
 pkgver=1.0.1.1
-pkgrel=1
+pkgrel=2
 pkgdesc="The most complete prelude formed solely from the \"base\" package"
 url="https://github.com/nikita-volkov/base-prelude"
 license=("MIT")
@@ -24,6 +24,7 @@
     runhaskell Setup haddock --hoogle --html
     runhaskell Setup register --gen-script
     runhaskell Setup unregister --gen-script
+    sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
@@ -30,8 +31,8 @@
 package() {
     cd "${srcdir}/${_hkgname}-${pkgver}"
     
-    install -D -m744 register.sh   "${pkgdir}/usr/share/haskell/${pkgname}/register.sh"
-    install    -m744 unregister.sh "${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh"
+    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"
     ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
     runhaskell Setup copy --destdir="${pkgdir}"



More information about the arch-commits mailing list