diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-01 20:05:49 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-01 20:09:48 +0200 |
commit | 01a844361fdfe40bcda6238f482fc703c5974359 (patch) | |
tree | 2116eaaa9119e85364f71801636f13522348f452 /main/py-enum34 | |
parent | 7bf84368ebc38922f2aa2668476049e88d880d8f (diff) | |
download | aports-01a844361fdfe40bcda6238f482fc703c5974359.tar.bz2 aports-01a844361fdfe40bcda6238f482fc703c5974359.tar.xz |
main/py-enum34: improve abuild and fix to not silently fail
Diffstat (limited to 'main/py-enum34')
-rw-r--r-- | main/py-enum34/APKBUILD | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/main/py-enum34/APKBUILD b/main/py-enum34/APKBUILD index 8b6d004ea3..317687b875 100644 --- a/main/py-enum34/APKBUILD +++ b/main/py-enum34/APKBUILD @@ -1,19 +1,18 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=py-enum34 +_pkgname=enum34 pkgver=1.1.6 -pkgrel=0 +pkgrel=1 pkgdesc="Python 3.4 Enum backported" url="http://pypi.python.org/pypi/enum34" arch="noarch" license="BSD" depends="" makedepends="python2-dev python3-dev py-setuptools" -install="" -subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" -source="https://files.pythonhosted.org/packages/source/e/enum34/enum34-$pkgver.tar.gz" - -builddir="$srcdir"/enum34-$pkgver +subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" @@ -26,16 +25,18 @@ package() { } _py() { - local python=$1 - pkgdesc="$pkgdesc - $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { - _py python2 replaces="$pkgname" + _py python2 } _py3() { |