diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-17 12:57:51 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-17 13:01:46 +0200 |
commit | 08e5b3038ba031cc21a0bd5d46b2a8a8d84b8089 (patch) | |
tree | 1291a41c138059c77c2dbfb9e9c21b38fd3988c8 /main/py-setuptools | |
parent | 3dd1698d0276c15f6453d1999ae8dcaa1043ecb4 (diff) | |
download | aports-08e5b3038ba031cc21a0bd5d46b2a8a8d84b8089.tar.bz2 aports-08e5b3038ba031cc21a0bd5d46b2a8a8d84b8089.tar.xz |
main/py-setuptools: fix "provides" and modernize abuild
Diffstat (limited to 'main/py-setuptools')
-rw-r--r-- | main/py-setuptools/APKBUILD | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/main/py-setuptools/APKBUILD b/main/py-setuptools/APKBUILD index e76cf5967d..c573b6f9ed 100644 --- a/main/py-setuptools/APKBUILD +++ b/main/py-setuptools/APKBUILD @@ -3,29 +3,30 @@ pkgname=py-setuptools _pkgname=${pkgname#py-} pkgver=33.1.1 -pkgrel=0 +pkgrel=1 pkgdesc="A collection of enhancements to the Python distutils" url="http://pypi.python.org/pypi/setuptools" arch="noarch" license="PSF" -provides="py2-setuptools" +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" +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 + python2 bootstrap.py + python2 setup.py build } package() { cd "$builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + + python2 setup.py install --prefix=/usr --root="$pkgdir" # we don't provide a non-suffixed easy_install - rm -f "$pkgdir"/usr/bin/easy_install || return 1 + rm -f "$pkgdir"/usr/bin/easy_install } md5sums="6f325e870730cd90f3ac9608cdf6a82f setuptools-33.1.1.tar.gz" |