aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-setuptools/APKBUILD
blob: ccea69cd49868d063a3bb8bc3f58e30b3fe6a135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Andrew Manison <amanison@anselsystems.com>
# Maintainer:  Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-setuptools
_pkgname=${pkgname#py-}
pkgver=28.0.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="c665edc9a64e08ce389a3b89346d9bbe  setuptools-28.0.0.tar.gz"
sha256sums="769564849ecd0b0f307060981b2d5d13ad29412b3f0cbd91682417352dfb0de7  setuptools-28.0.0.tar.gz"
sha512sums="b3fc1b331f712ce12c426234cabf0eb9bf0b4e076bec405a96126a3d99b1da83c5540ab009f80d5a62f9a5c165611ec0a07eec172593e4e9e032b9f3dc45aa18  setuptools-28.0.0.tar.gz"