aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-setuptools/APKBUILD
blob: 95a15cd1e43d8a2f1f12015d95f0aeb4dad1d38e (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=19.2
pkgrel=0
pkgdesc="A collection of enhancements to the Python distutils"
url="http://pypi.python.org/pypi/setuptools"
arch="noarch"
license="PSF"
depends="python"
makedepends="python-dev"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
	# we don't provide a non-suffixed easy_install
	echo "Removing non-suffixed easy_install ( $pkgdir/usr/bin/easy_install)"
	rm "$pkgdir"/usr/bin/easy_install
}

md5sums="78353b1f80375ca5e088f4b4627ffe03  setuptools-19.2.tar.gz"
sha256sums="f90ed8eb70b14b0594ba74e9de4ffca040c0ec8ee505cbf3570499467859f71a  setuptools-19.2.tar.gz"
sha512sums="2494606930d6d422e8c105e8e5b40a07b23709f361164c5df40ff24c80328b861179652c7212fa38137534206c187bc4de42d249bc686d43fad18f23d0a26126  setuptools-19.2.tar.gz"