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

Jiachen Yang farseerfc at archlinux.org
Sun Feb 28 15:59:14 UTC 2016


    Date: Sunday, February 28, 2016 @ 16:59:14
  Author: farseerfc
Revision: 163660

upgpkg: powerline 2.3-6

fix FS#48358

Modified:
  powerline/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-28 15:36:52 UTC (rev 163659)
+++ PKGBUILD	2016-02-28 15:59:14 UTC (rev 163660)
@@ -10,7 +10,7 @@
 pkgname=("powerline" "powerline2" "python-powerline" "python2-powerline" "powerline-common" "powerline-vim" "powerline-fonts")
 pkgdesc='Statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome, i3 and Qtile'
 pkgver=2.3
-pkgrel=5
+pkgrel=6
 url="https://github.com/${_pkgname}/${_pkgname}"
 license=('MIT')
 arch=('x86_64' 'i686')
@@ -25,11 +25,17 @@
 
 
 prepare() {
+    # fix https://bugs.archlinux.org/task/48358
+    cd ${srcdir}/${_pkgname}-${pkgver}
+    find scripts -type f -iname "powerline-*" -print0 | xargs -0 sed -i "1s/env //"
+    find ${_pkgname}/bindings -type f -iname "*.py" -print0 | xargs -0 sed -i "1s/env //"
+
+
     cp -r ${srcdir}/${_pkgname}-${pkgver}{,-py2}
     # prepare python2 scripts
     cd ${srcdir}/${_pkgname}-${pkgver}-py2
     find scripts -type f -iname "powerline-*" -print0 | xargs -0 sed -i "1s/python/python2/"
-    find ${_pkgname}/bindings -type f -iname "*.py" -print0 | xargs -0 sed -i "1s/python/python2/" 
+    find ${_pkgname}/bindings -type f -iname "*.py" -print0 | xargs -0 sed -i "1s/python/python2/"
 }
 
 build(){



More information about the arch-commits mailing list