2012-11-21 11:12:43 -06:00

35 lines
991 B
Plaintext

# Description: Python interpreter, version 2.7
# URL: http://www.python.org
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: db-32 gdbm-32 openssl-32 bzip2-32 zlib-32 sqlite3-32 python
name=python-32
version=2.7.3
release=3
source=(http://www.python.org/ftp/python/$version/Python-$version.tar.xz)
build () {
cd Python-$version
./configure --prefix=/usr \
--libdir=/usr/lib32 \
--mandir=/usr/man \
--enable-shared \
--with-threads \
--enable-ipv6 \
--with-dbmliborder=gdbm
make EXTRA_CFLAGS="$CFLAGS"
make -j1 DESTDIR=$PKG install
ln -sf python2.7 $PKG/usr/bin/python
ln -s python2.7 $PKG/usr/lib32/python
ln -s python2.7 $PKG/usr/include/python
ln -s /usr/lib32/libpython2.7.so $PKG/usr/lib32/python2.7/config/libpython2.7.so
mv $PKG/usr/include/python2.7/pyconfig.h $PKG/
rm -rf $PKG/usr/{bin,include,lib,man}
install -d $PKG/usr/include/python2.7
mv $PKG/pyconfig.h $PKG/usr/include/python2.7/pyconfig-32.h
}