updated on Fri Jan 20 12:03:34 UTC 2012
[aur-mirror.git] / python25 / PKGBUILD
blob602526ac8a7218b843410842f648dc82315b4100
1 # Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
2 pkgname=python25
3 pkgver=2.5.6
4 pkgrel=2
5 pkgdesc="A high-level scripting language"
6 arch=(i686 x86_64)
7 license=('custom')
8 url="http://www.python.org"
9 depends=('db4.5' 'bzip2' 'gdbm' 'openssl' 'zlib' 'gcc-libs' 'readline')
10 makedepends=('tk')
11 source=(http://www.python.org/ftp/python/$pkgver/Python-$pkgver.tar.bz2 
12         )
13 options=('!makeflags')
14 md5sums=('5d45979c5f30fb2dd5f067c6b06b88e4')
19 build() {
20   export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$startdir/src/Python-$pkgver
21   cd $startdir/src/Python-$pkgver
22   SVNVERSION="echo exported" ./configure --prefix=/usr --enable-shared --with-threads --enable-unicode
23   make || return 1
24   make DESTDIR=$startdir/pkg altinstall
25   #rm $startdir/pkg/usr/bin/python
26   #rm $startdir/pkg/usr/bin/python-config
28   # Rename all the scripts
29   pushd $startdir/pkg/usr/bin
30   mv idle idle2.5
31   mv pydoc pydoc2.5
32   mv smtpd.py smtpd2.5.py
33   popd
35   # license
36   install -D -m644 LICENSE ${startdir}/pkg/usr/share/licenses/${pkgname}/LICENSE
37   #mv $startdir/pkg/usr/share/man/man1/python.1 $startdir/pkg/usr/share/man/man1/python25.1