summaryrefslogtreecommitdiffstats
path: root/extra/python2/Pkgfile
blob: 879e000c5e0a8166b059b821de6cb15468bf46de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Description: Environnement de développement python
# URL: http://www.python.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: pth, sqlite3

name=python2
version=2.7.1
release=1
source=( http://www.python.org/ftp/python/$version/Python-$version.tar.bz2)

build() {
	cd Python-$version
	sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" \
     	setup.py
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
        	--enable-shared
	make
	make DESTDIR=$PKG install

	rm $PKG/usr/bin/idle
	rm $PKG/usr/bin/pydoc
	rm $PKG/usr/bin/python
	rm $PKG/usr/bin/python-config

}