1 # $Id: PKGBUILD 75307 2010-04-01 09:52:56Z allan $
2 # Maintainer: Anish Bhatt <anish@archlinux.us>
3 # Ex-Maintainer: Allan McRae <allan@archlinux.org>
4 # Contributor: Jason Chu <jason@archlinux.org>
9 pkgdesc="A high-level scripting language"
10 arch=('i686' 'x86_64')
12 url="http://www.python.org"
13 depends=('db4.5' 'bzip2' 'gdbm' 'openssl' 'zlib' 'gcc-libs' 'readline>=6.')
15 source=(http://www.python.org/ftp/python/$pkgver/Python-$pkgver.tar.bz2
16 db4.5-setup.py-detection.patch db_fix.patch dbm_fix.patch)
17 options=('!makeflags')
18 md5sums=('76083277f6c7e4d78992f36d7ad9018d'
19 'f9620f756b43f46b28b2986de21285dc'
20 '1c178479d17ae1e59cccb0a3f7be043b'
21 '57c9ba3329487bf67a785bf7c3ea0e31')
24 cd ${srcdir}/Python-${pkgver}
25 patch -Np0 -i ../db4.5-setup.py-detection.patch || return 1
26 patch -Np0 -i ../db_fix.patch || return 1
27 patch -Np0 -i ../dbm_fix.patch || return 1
28 ./configure --prefix=/usr --mandir=/usr/share/man \
29 --enable-shared --with-threads --enable-unicode
31 export LD_LIBRARY_PATH=`pwd`
32 make DESTDIR=${pkgdir} install
33 rm ${pkgdir}/usr/bin/python
35 # Rename all the scripts
36 pushd ${pkgdir}/usr/bin
39 mv smtpd.py smtpd2.4.py
40 mv ${pkgdir}/usr/share/man/man1/python.1 ${pkgdir}/usr/share/man/man1/python${pkgver}
44 install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE