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

Felix Yan felixonmars at archlinux.org
Thu Jul 2 09:09:26 UTC 2020


    Date: Thursday, July 2, 2020 @ 09:09:19
  Author: felixonmars
Revision: 657469

upgpkg: xmobar 0.35-2: add missing register scripts

Modified:
  xmobar/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-02 08:56:51 UTC (rev 657468)
+++ PKGBUILD	2020-07-02 09:09:19 UTC (rev 657469)
@@ -5,7 +5,7 @@
 
 pkgname=xmobar
 pkgver=0.35
-pkgrel=1
+pkgrel=2
 pkgdesc='Minimalistic Text Based Status Bar'
 url='https://hackage.haskell.org/package/xmobar'
 license=('BSD')
@@ -47,6 +47,10 @@
     --flags="${_flags[*]}" \
     --enable-tests
   runhaskell setup build
+  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
 }
 
 check() {
@@ -56,6 +60,8 @@
 
 package() {
   cd xmobar-${pkgver}
+  install -Dm 744 register.sh   "${pkgdir}/usr/share/haskell/register/xmobar.sh"
+  install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/xmobar.sh"
   runhaskell setup copy --destdir="${pkgdir}"
   install -Dm 644 license -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }


More information about the arch-commits mailing list