diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-01 23:08:41 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-01 23:14:16 +0200 |
commit | df821d2394e0b6fe05d36b0682125889c7e7c43d (patch) | |
tree | cc2fb2e746d776a528548fe8a70c4b950b503cd4 /main/py-openssl | |
parent | 00af055fb923409c52ba1ba0410237aa11804b3e (diff) | |
download | aports-df821d2394e0b6fe05d36b0682125889c7e7c43d.tar.bz2 aports-df821d2394e0b6fe05d36b0682125889c7e7c43d.tar.xz |
main/py-openssl: improve abuild and fix to not silently fail
Diffstat (limited to 'main/py-openssl')
-rw-r--r-- | main/py-openssl/APKBUILD | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/main/py-openssl/APKBUILD b/main/py-openssl/APKBUILD index 78c3773e76..761ea88d3c 100644 --- a/main/py-openssl/APKBUILD +++ b/main/py-openssl/APKBUILD @@ -1,19 +1,17 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=py-openssl -_pkgname=${pkgname/py-/} +_pkgname=pyOpenSSL pkgver=16.0.0 pkgrel=2 pkgdesc="Python wrapper module around the OpenSSL library" url="http://pyopenssl.sourceforge.net/" arch="noarch" -license="ASL 2.0" +license="ASL-2.0" depends="" -depends_dev="" makedepends="openssl-dev python2-dev py-setuptools python3-dev" -install="" -subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" -source="https://files.pythonhosted.org/packages/source/p/pyOpenSSL/pyOpenSSL-$pkgver.tar.gz" -builddir="$srcdir"/pyOpenSSL-$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" @@ -25,18 +23,19 @@ package() { mkdir -p "$pkgdir" } - _py() { - local python=$1 - pkgdesc="$pkgdesc - $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() { |