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

Jelle van der Waa jelle at nymeria.archlinux.org
Thu Nov 14 22:55:16 UTC 2013


    Date: Thursday, November 14, 2013 @ 23:55:16
  Author: jelle
Revision: 101015

upgpkg: python-cssutils 0.9.10-4

fix shebang in prepare()

Modified:
  python-cssutils/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-11-14 21:17:37 UTC (rev 101014)
+++ PKGBUILD	2013-11-14 22:55:16 UTC (rev 101015)
@@ -8,7 +8,7 @@
 pkgbase=python-cssutils
 pkgname=('python2-cssutils' 'python-cssutils')
 pkgver=0.9.10
-pkgrel=3
+pkgrel=4
 pkgdesc="A CSS Cascading Style Sheets library for Python"
 arch=('any')
 url="http://cthedot.de/cssutils/"
@@ -26,6 +26,9 @@
   # Use #!/usr/bin/python3 
   cd cssutils-${pkgver}/src
   find . -maxdepth 2 -mindepth 1 -type f -iname '*.py' -exec sed -i 's/env python/python3/' '{}' \;
+
+  cd "${srcdir}/cssutils-py2-${pkgver}"
+  find . -maxdepth 2 -mindepth 1 -type f -iname '*.py' -exec sed -i -e 's:#!/usr/bin/env python:#!/usr/bin/env python2:g' '{}' \;
 }
 
 package_python2-cssutils() {
@@ -35,8 +38,6 @@
 
   python2 setup.py install --root="${pkgdir}/" --optimize=1
 
-  sed -i -e "s:#!/usr/bin/env python:#!/usr/bin/env python2:g" \
-             $(find "${pkgdir}" -name '*.py')
 
   # Don't install tests (FS#27567)
   rm -rf "${pkgdir}/usr/lib/python2.7/site-packages/tests"




More information about the arch-commits mailing list