diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-01 20:02:21 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-01 20:09:48 +0200 |
commit | 7bf84368ebc38922f2aa2668476049e88d880d8f (patch) | |
tree | 37e79270cc24831d5315cc692f4c7b8340907055 /main | |
parent | a0fe50dcd2f703e247fa5c57b6b3c7820c1cf183 (diff) | |
download | aports-7bf84368ebc38922f2aa2668476049e88d880d8f.tar.bz2 aports-7bf84368ebc38922f2aa2668476049e88d880d8f.tar.xz |
main/py-ecdsa: improve abuild and fix to not silently fail
Diffstat (limited to 'main')
-rw-r--r-- | main/py-ecdsa/APKBUILD | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/main/py-ecdsa/APKBUILD b/main/py-ecdsa/APKBUILD index 3ec442c5ee..61879d2fe0 100644 --- a/main/py-ecdsa/APKBUILD +++ b/main/py-ecdsa/APKBUILD @@ -10,11 +10,9 @@ arch="noarch" license="MIT" depends="" makedepends="python2-dev python3-dev py-setuptools" -install="" subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - -builddir="$srcdir"/$_pkgname-$pkgver +builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" @@ -27,27 +25,26 @@ package() { } _py() { - local python=$1 - pkgdesc="$pkgdesc - $python" + local python="$1" + pkgdesc="$pkgdesc (for $python)" arch="all" - install_if="$pkgname=$pkgver-r$pkgrel $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { - _py python2 depends="$depends py2-crypto" replaces="$pkgname" + _py python2 } _py3() { - _py python3 depends="$depends py3-crypto" + _py python3 } - - md5sums="1f60eda9cb5c46722856db41a3ae6670 ecdsa-0.13.tar.gz" sha256sums="64cf1ee26d1cde3c73c6d7d107f835fed7c6a2904aef9eac223d57ad800c43fa ecdsa-0.13.tar.gz" sha512sums="f21d4d196404455135a1a2255c889ffa26160ea1e9b9d16c914ea82614831816acb6d27c86aac68cdaafa8b1d5fefe065b5f49ce45acaae4a035cd7f08a97594 ecdsa-0.13.tar.gz" |