1 # Description: Python interpreter, version 2.7
2 # URL: http://www.python.org
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on: db gdbm openssl bzip2 zlib sqlite3
10 source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \
16 patch -p1 -i $SRC/$name-gdbm.patch
18 ./configure --prefix=/usr \
24 make EXTRA_CFLAGS="$CFLAGS"
25 make -j1 DESTDIR=$PKG install
27 ln -sf python2.7 $PKG/usr/bin/python
28 ln -s python2.7 $PKG/usr/lib/python
29 ln -s python2.7 $PKG/usr/include/python
30 ln -s /usr/lib/libpython2.7.so $PKG/usr/lib/python2.7/config/libpython2.7.so
32 rm -r $PKG/usr/lib/python/{bsddb,ctypes,email,sqlite3}/test
33 rm -r $PKG/usr/lib/python/{distutils,json,lib2to3}/tests
34 rm $PKG/usr/lib/python/{distutils,site-packages,test/data}/README
35 rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt}
36 rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes