# Contributor: Andrew Manison # Maintainer: Fabian Affolter pkgname=py-setuptools _pkgname=${pkgname#py-} pkgver=28.8.0 pkgrel=0 pkgdesc="A collection of enhancements to the Python distutils" url="http://pypi.python.org/pypi/setuptools" arch="noarch" license="PSF" provides="py2-setuptools" depends="python2" makedepends="python2-dev" source="${_pkgname}-${pkgver}.tar.gz::https://github.com/pypa/${_pkgname}/archive/v${pkgver}.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python2 bootstrap.py || return 1 python2 setup.py build || return 1 } package() { cd "$builddir" python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 # we don't provide a non-suffixed easy_install rm -f "$pkgdir"/usr/bin/easy_install || return 1 } md5sums="8d464ce5885f91d35aa22597efcb8c7b setuptools-28.8.0.tar.gz" sha256sums="d3b2c63a5cb6816ace0883bc3f6aca9e7890c61d80ac0d608a183f85825a7cc0 setuptools-28.8.0.tar.gz" sha512sums="9e2778395be0a0b9c4a51faa4c532d88a2c777b7150b85b1191ace539e9a81abf1fe1b8c59e1cdc449dd6cdb0822a30f4e9cabb17adaf139b2f9f731da6fec9b setuptools-28.8.0.tar.gz"