diff options
Diffstat (limited to 'community/py-service_identity')
-rw-r--r-- | community/py-service_identity/APKBUILD | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/community/py-service_identity/APKBUILD b/community/py-service_identity/APKBUILD index c5b70624f3..3a215d7d93 100644 --- a/community/py-service_identity/APKBUILD +++ b/community/py-service_identity/APKBUILD @@ -4,13 +4,12 @@ pkgname=py-service_identity _pkgname=service_identity pkgver=18.1.0 pkgrel=0 -pkgdesc="Service Identity Verification for pyOpenSSL" +pkgdesc="Service identity verification for Python" url="https://service-identity.readthedocs.org/" arch="noarch" license="MIT" depends="py-asn1 py-asn1-modules py-attrs py-characteristic py-cryptography" -makedepends="python2-dev py-setuptools py2-pytest python3-dev py3-pytest" -install="" +makedepends="py-setuptools python2-dev python3-dev" subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" source="https://files.pythonhosted.org/packages/source/s/$_pkgname/$_pkgname-$pkgver.tar.gz" @@ -18,22 +17,14 @@ builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 + python2 setup.py build + python3 setup.py build } package() { mkdir -p "$pkgdir" } -_py() { - local python=$1 - pkgdesc="$pkgdesc - $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" -} - _py2() { replaces="$pkgname" depends="${depends//py-/py2-} py2-ipaddress" @@ -45,4 +36,13 @@ _py3() { _py python3 } +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + sha512sums="c1556e385035a8d43fd0e3960c0396b9d2536c5e3c7450b3669c8c9b8ff60b6a9d2f0282dc30c1fb46034b4abcb0ff6d74ed79f6bcc33f59035988ccaf3324d2 service_identity-18.1.0.tar.gz" |