[arch-commits] Commit in python2-tempita/trunk (PKGBUILD)
Jelle van der Waa
jelle at nymeria.archlinux.org
Sat Nov 30 15:35:51 UTC 2013
Date: Saturday, November 30, 2013 @ 16:35:51
Author: jelle
Revision: 101722
upgpkg: python2-tempita 0.5.1-2
fix python mtree mismatches
Modified:
python2-tempita/trunk/PKGBUILD
----------+
PKGBUILD | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-11-30 15:19:19 UTC (rev 101721)
+++ PKGBUILD 2013-11-30 15:35:51 UTC (rev 101722)
@@ -6,7 +6,7 @@
pkgname=python2-tempita
pkgver=0.5.1
-pkgrel=1
+pkgrel=2
pkgdesc="A lightweight unicode templating language"
arch=('any')
url="http://pythonpaste.org/tempita/"
@@ -17,12 +17,16 @@
$pkgname-license.txt::http://pythonpaste.org/tempita/_sources/license.txt)
md5sums=('f75bdfeabd2f3755f1ff32d582a574a4'
'c66b85ddcd09296abff87601467724fd')
+prepare() {
+ cd $srcdir/Tempita-${pkgver}
+ sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ $(find . -name '*.py')
+}
+
package() {
cd $srcdir/Tempita-${pkgver}
python2 setup.py install --root=$pkgdir --optimize=1
install -Dm644 $srcdir/$pkgname-license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
- sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
- -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
- $(find $pkgdir -name '*.py')
}
More information about the arch-commits
mailing list