diff options
Diffstat (limited to 'main/py-pynacl/APKBUILD')
-rw-r--r-- | main/py-pynacl/APKBUILD | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/main/py-pynacl/APKBUILD b/main/py-pynacl/APKBUILD index aa65f146d3..a9b2b42908 100644 --- a/main/py-pynacl/APKBUILD +++ b/main/py-pynacl/APKBUILD @@ -3,11 +3,12 @@ pkgname=py-pynacl _pkgname=${pkgname/py-/} pkgver=1.2.1 -pkgrel=0 +pkgrel=1 pkgdesc="Python binding to the Networking and Cryptography (NaCl) library" url="https://github.com/pyca/pynacl" arch="all" license="Apache-2.0" +depends="py-cffi py-six" makedepends="py-setuptools python2-dev python3-dev libffi-dev" subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" source="$pkgname-$pkgver.tar.gz::https://github.com/pyca/$_pkgname/archive/$pkgver.tar.gz" @@ -32,17 +33,20 @@ package() { _py() { local python=$1 pkgdesc="$pkgdesc - $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" + depends="${depends//py-/py2-}" + _py python2 } _py3() { + depends="${depends//py-/py3-}" _py python3 } |