1 # Maintainer: Blake Imsland <blake@retroco.de>
3 pkgname=python25-distribute
6 pkgdesc="Easily build and distribute Python packages"
9 url="http://pypi.python.org/pypi/distribute"
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
16 md5sums=('17722b22141aba8235787f79800cc452'
17 '84b949df562f1c2b13e6cd580b418d60')
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
32 cd $srcdir/distribute-$pkgver
34 python2.5 setup.py install --prefix=/usr --root=$pkgdir --optimize=1 --skip-build