updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python25-distribute / PKGBUILD
blobabed9a60c6c25633374aea231d12a009e1e94bab
1 # Maintainer: Blake Imsland <blake@retroco.de>
3 pkgname=python25-distribute
4 pkgver=0.6.24
5 pkgrel=1
6 pkgdesc="Easily build and distribute Python packages"
7 arch=('any')
8 license=('PSF')
9 url="http://pypi.python.org/pypi/distribute"
10 depends=('python25')
11 conflicts=('python25-setuptools')
12 replaces=('python25-setuptools')
13 provides=('python25-setuptools=0.6c11')
14 source=(http://pypi.python.org/packages/source/d/distribute/distribute-$pkgver.tar.gz
15         python25.patch)
16 md5sums=('17722b22141aba8235787f79800cc452'
17          '84b949df562f1c2b13e6cd580b418d60')
19 build() {
20   cd $srcdir/distribute-$pkgver
22   patch -Np1 -i $srcdir/python25.patch
24   sed -i setuptools/tests/test_resources.py \
25     -e 's|^#!.*/usr/bin/python.*|#!/usr/bin/python2.5|'
27   python2.5 setup.py build
28   python2.5 setup.py test
31 package() {
32   cd $srcdir/distribute-$pkgver
34   python2.5 setup.py install --prefix=/usr --root=$pkgdir --optimize=1 --skip-build