Date: Thursday, September 4, 2014 @ 11:10:08 Author: aginiewicz Revision: 118261
upgpkg: python2-xlwt 0.7.5-2 python2-xlwt: fix mtime Modified: python2-xlwt/trunk/PKGBUILD ----------+ PKGBUILD | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-09-04 09:06:57 UTC (rev 118260) +++ PKGBUILD 2014-09-04 09:10:08 UTC (rev 118261) @@ -5,7 +5,7 @@ pkgname=python2-xlwt pkgver=0.7.5 -pkgrel=1 +pkgrel=2 pkgdesc="Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files" arch=('any') url="http://www.python-excel.org/" @@ -15,8 +15,18 @@ source=("https://pypi.python.org/packages/source/x/xlwt/xlwt-${pkgver}.tar.gz") md5sums=('59cb5efd55319465dfcd25e6a485f03c') +prepare() { + cd "$srcdir/xlwt-$pkgver" + + sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ + -i $(find . -name '*.py') +} + build() { cd "$srcdir/xlwt-$pkgver" + python2 setup.py build } @@ -25,7 +35,6 @@ python2 setup.py install --skip-build --root="$pkgdir" --optimize=1 - find "$pkgdir" -name "*.py" -exec sed -i '1s/python[[:space:]]*$/python2/' {} \; install -Dm644 licences.py "$pkgdir/usr/share/licenses/$pkgname/licences.py" }