Date: Saturday, February 15, 2014 @ 16:09:56 Author: fyan Revision: 206007
upgpkg: python2 2.7.6-2 - fix FS#38915 Modified: python2/trunk/PKGBUILD ----------+ PKGBUILD | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-02-15 15:06:53 UTC (rev 206006) +++ PKGBUILD 2014-02-15 15:09:56 UTC (rev 206007) @@ -5,7 +5,7 @@ pkgname=python2 pkgver=2.7.6 -pkgrel=1 +pkgrel=2 _pybasever=2.7 pkgdesc="A high-level scripting language" arch=('i686' 'x86_64') @@ -40,6 +40,13 @@ rm -r Modules/expat rm -r Modules/zlib rm -r Modules/_ctypes/{darwin,libffi}* + + # clean up #!s + find . -name '*.py' | \ + xargs sed -i "s|#[ ]*![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" + + # Workaround asdl_c.py error + touch Include/Python-ast.h Python/Python-ast.c } build() { @@ -80,13 +87,6 @@ mv "${pkgdir}"/usr/bin/pydoc{,2} mv "${pkgdir}"/usr/bin/2to3{,-2.7} - # clean up #!s - find . -name '*.py' | \ - xargs sed -i "s|#[ ]*![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" - - # Workaround asdl_c.py error - touch Include/Python-ast.h Python/Python-ast.c - # clean-up reference to build directory sed -i "s#${srcdir}/Python-${pkgver}:##" "${pkgdir}"/usr/lib/python${_pybasever}/config/Makefile