diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-01 20:16:23 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-01 20:19:25 +0200 |
commit | 4f5da7f85993adc9b7cc5b3aacc24a204ba0d1e0 (patch) | |
tree | bb237f12d3c1319c3f92d1d7588b64cb3924c312 /main/py-idna/APKBUILD | |
parent | b09efaf68107a237b5c642b37793baddbb25beef (diff) | |
download | aports-4f5da7f85993adc9b7cc5b3aacc24a204ba0d1e0.tar.bz2 aports-4f5da7f85993adc9b7cc5b3aacc24a204ba0d1e0.tar.xz |
main/py-idna: improve abuild and fix to not silently fail
Diffstat (limited to 'main/py-idna/APKBUILD')
-rw-r--r-- | main/py-idna/APKBUILD | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/main/py-idna/APKBUILD b/main/py-idna/APKBUILD index ee87d0ae13..b3bcfed28a 100644 --- a/main/py-idna/APKBUILD +++ b/main/py-idna/APKBUILD @@ -1,6 +1,7 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=py-idna +_pkgname=idna pkgver=2.1 pkgrel=1 pkgdesc="IDNA 2008 and UTS #46 for Python" @@ -9,11 +10,9 @@ arch="noarch" license="BSD" depends="" makedepends="python2-dev python3-dev py-setuptools" -install="" -subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" +subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" source="idna-$pkgver.tar.gz::https://github.com/kjd/idna/archive/v$pkgver.tar.gz" - -builddir="$srcdir"/idna-$pkgver +builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" @@ -26,24 +25,24 @@ package() { } _py() { - local python=$1 - pkgdesc="$pkgdesc - $python" - arch="all" - 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() { _py python3 } - md5sums="df0a50db62bcfcddbef2b5c9d5cd2343 idna-2.1.tar.gz" sha256sums="25a3dadf365b8cc2c2c262170c5de67c9195f3270cdb47a0ae459b4ebad11914 idna-2.1.tar.gz" sha512sums="92ddaccd57f8d9cf7b57d7880f8ea3890a32a21369ba56dc713da7235983676698ef2019d6b85381ebc7291088e76c8e33f9697cbeaa7b67edef9115dfcf2189 idna-2.1.tar.gz" |