# Maintainer: Max Pray a.k.a. Synthead pkgname=python26-distribute _pkgname=distribute pkgver=0.6.16 pkgrel=2 pkgdesc="Easily build and distribute Python packages" arch=('any') license=('PSF') url="http://pypi.python.org/pypi/distribute" depends=('python26') source=("http://pypi.python.org/packages/source/d/$_pkgname/$_pkgname-$pkgver.tar.gz" 'distribute-0.6.16-fix_deprecation_warnings.patch') sha1sums=('30729db66892b7583d24d8e54cdaeb4176e2953b' 'a20bb3f35a03847ebe02199f2ce1a1c3883ef171') build() { cd "$srcdir/" tar zxf $_pkgname-$pkgver.tar.gz cd "$_pkgname-$pkgver" patch -Np1 -i "$srcdir/distribute-0.6.16-fix_deprecation_warnings.patch" python2.6 setup.py build } package() { cd "$srcdir/$_pkgname-$pkgver" python2.6 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build }