diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-09 20:14:37 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-09 20:14:37 +0100 |
commit | 4cd37c6f10b37acf49d507eb17a41a58afc28aa9 (patch) | |
tree | 38fe1b5f5ba762c4eb6a943341f2e72a42e9b6f6 /community | |
parent | 57cf873d0c7cd584878ba77878ca920186270783 (diff) | |
download | aports-4cd37c6f10b37acf49d507eb17a41a58afc28aa9.tar.bz2 aports-4cd37c6f10b37acf49d507eb17a41a58afc28aa9.tar.xz |
community/py-future: fix abuild to not silently fail, fix depends
Diffstat (limited to 'community')
-rw-r--r-- | community/py-future/APKBUILD | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/community/py-future/APKBUILD b/community/py-future/APKBUILD index d4dd25d58b..ea8db9a966 100644 --- a/community/py-future/APKBUILD +++ b/community/py-future/APKBUILD @@ -3,15 +3,14 @@ pkgname=py-future _pkgname=python-future pkgver=0.15.2 -pkgrel=2 +pkgrel=3 pkgdesc="Easy, clean, reliable Python 2/3 compatibility" url="http://python-future.org/" arch="noarch" license="MIT" depends="" makedepends="python2-dev python3-dev py-setuptools" -install="" -subpackages="py3-${_pkgname/python-/}:_py3 py2-${_pkgname/python-/}:_py2" +subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" source="$pkgname-$pkgver.tar.gz::https://github.com/PythonCharmers/$_pkgname/archive/v$pkgver.tar.gz re-enable-python3-5.patch" builddir="$srcdir/$_pkgname-$pkgver" @@ -19,7 +18,7 @@ builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python2 setup.py build || return 1 - python3 setup.py build || return 1 + python3 setup.py build || return 1 } package() { @@ -27,17 +26,19 @@ 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" + $python setup.py install --prefix=/usr --root="$subpkgdir" || return 1 install -Dm0644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt } _py2() { - _py python2 replaces="$pkgname" + _py python2 } _py3() { |