summaryrefslogtreecommitdiff
path: root/extra/python2/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-16 03:38:43 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-16 03:38:43 +0000
commit7695869e55415ddd53069b90850a387e73f04f4e (patch)
tree943d5d2b3a9a108665203c54fa0f5d63d112a7c3 /extra/python2/PKGBUILD
parent34276794ce110cd2f9204e4b504aea41fb584145 (diff)
Sun Feb 16 03:37:09 UTC 2014
Diffstat (limited to 'extra/python2/PKGBUILD')
-rw-r--r--extra/python2/PKGBUILD18
1 files changed, 9 insertions, 9 deletions
diff --git a/extra/python2/PKGBUILD b/extra/python2/PKGBUILD
index f1a3a5108..39ce339d2 100644
--- a/extra/python2/PKGBUILD
+++ b/extra/python2/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 200588 2013-11-29 15:17:25Z angvp $
+# $Id: PKGBUILD 206008 2014-02-15 15:11:11Z fyan $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributer: Allan McRae <allan@archlinux.org>
# Contributer: Jason Chu <jason@archlinux.org>
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 @@ prepare() {
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 @@ package() {
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