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

Allan McRae allan at archlinux.org
Fri Oct 1 12:37:29 UTC 2010


    Date: Friday, October 1, 2010 @ 08:37:29
  Author: allan
Revision: 92815

upgpkg: python-cheetah 2.4.2.1-2
python2 rebuild

Modified:
  python-cheetah/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-10-01 12:08:29 UTC (rev 92814)
+++ PKGBUILD	2010-10-01 12:37:29 UTC (rev 92815)
@@ -4,12 +4,12 @@
 
 pkgname=python-cheetah
 pkgver=2.4.2.1
-pkgrel=1
+pkgrel=2
 pkgdesc="A Python-powered template engine and code generator"
-arch=('i686' 'x86_64')
+arch=('any')
 url="http://www.cheetahtemplate.org/"
 license=('custom')
-depends=('python')
+depends=('python2')
 provides=('cheetah')
 conflicts=('cheetah')
 source=(http://pypi.python.org/packages/source/C/Cheetah/Cheetah-${pkgver}.tar.gz)
@@ -18,6 +18,9 @@
 
 package() {
   cd "${srcdir}/Cheetah-${pkgver}"
-  python setup.py install --root="${pkgdir}" || return 1
+  python2 setup.py install --root="${pkgdir}" || return 1
   install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+  find $pkgdir/usr/lib/python2.7/site-packages/Cheetah/ -name '*.py' | \
+    xargs sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|"
 }




More information about the arch-commits mailing list