diff options
Diffstat (limited to 'main/py-openssl/APKBUILD')
-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() { |