[arch-commits] Commit in system-config-printer/trunk (PKGBUILD)
Andrea Scarpino
andrea at archlinux.org
Tue Oct 19 09:39:43 UTC 2010
Date: Tuesday, October 19, 2010 @ 05:39:42
Author: andrea
Revision: 96201
fix python path in the proper way (FS#21317)
Modified:
system-config-printer/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-10-19 08:46:56 UTC (rev 96200)
+++ PKGBUILD 2010-10-19 09:39:42 UTC (rev 96201)
@@ -5,7 +5,7 @@
pkgname=('system-config-printer-common'
'system-config-printer-gnome')
pkgver=1.2.5
-pkgrel=1
+pkgrel=2
pkgdesc="A CUPS printer configuration tool and status applet"
url="http://cyberelk.net/tim/software/system-config-printer/"
arch=('any')
@@ -22,6 +22,10 @@
--sysconfdir=/etc \
--disable-nls
python2 setup.py build
+
+ sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ $(find . -name '*.py')
}
package_system-config-printer-common() {
@@ -56,9 +60,6 @@
${pkgdir}/etc/dbus-1/system.d/
python2 setup.py install --root="${pkgdir}"
-
- # fix python 2.7 path
- find "${pkgdir}" -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
}
package_system-config-printer-gnome() {
More information about the arch-commits
mailing list