# Contributor: Andrew Manison <amanison@anselsystems.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
setvar pkgname = 'py-setuptools'
setvar _pkgname = ${pkgname#py-}
setvar pkgver = '33.1.1'
setvar pkgrel = '1'
setvar pkgdesc = ""A collection of enhancements to the Python distutils""
setvar url = ""http://pypi.python.org/pypi/setuptools""
setvar arch = ""noarch""
setvar license = ""PSF""
setvar provides = ""py2-setuptools=$pkgver-r$pkgrel""
setvar depends = ""python2""
setvar makedepends = ""python2-dev""
setvar source = ""$_pkgname-$pkgver.tar.gz::https://github.com/pypa/$_pkgname/archive/v$pkgver.tar.gz""
setvar builddir = ""$srcdir/$_pkgname-$pkgver""

proc build {
	cd $builddir
	python2 bootstrap.py
	python2 setup.py build
}

proc 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
}

setvar md5sums = ""6f325e870730cd90f3ac9608cdf6a82f  setuptools-33.1.1.tar.gz""
setvar sha256sums = ""a1ceebce3a0e2c6676ab03d6222a3f3cb403a392acb9e3919da5d1e1bbc447a4  setuptools-33.1.1.tar.gz""
setvar sha512sums = ""4cc73881162be28b70cd9abe01bafc676b491608e5d22dd6b688043291eb42f7b1c6cb17d1e0c65a1f88e3896688991d446048e330426bcf3247baecc2eb1d06  setuptools-33.1.1.tar.gz""