# Contributor: Andrew Manison # Maintainer: Fabian Affolter pkgname=py-setuptools _pkgname=${pkgname#py-} pkgver=33.1.1 pkgrel=1 pkgdesc="A collection of enhancements to the Python distutils" url="https://pypi.python.org/pypi/setuptools" arch="noarch" license="PSF" provides="py2-setuptools=$pkgver-r$pkgrel" 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 python2 setup.py build } package() { cd "$builddir" python2 setup.py install --prefix=/usr --root="$pkgdir" # we don't provide a non-suffixed easy_install rm -f "$pkgdir"/usr/bin/easy_install } md5sums="6f325e870730cd90f3ac9608cdf6a82f setuptools-33.1.1.tar.gz" sha256sums="a1ceebce3a0e2c6676ab03d6222a3f3cb403a392acb9e3919da5d1e1bbc447a4 setuptools-33.1.1.tar.gz" sha512sums="4cc73881162be28b70cd9abe01bafc676b491608e5d22dd6b688043291eb42f7b1c6cb17d1e0c65a1f88e3896688991d446048e330426bcf3247baecc2eb1d06 setuptools-33.1.1.tar.gz"