diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-07-19 08:27:02 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-07-19 08:27:13 +0000 |
commit | 6733406c00bbb3c5e5b64a6dc362075c58c49ceb (patch) | |
tree | d4b5cf0095d5814fe37ae9490513d1e3894c8b06 /testing | |
parent | 9bb3233d8c7672f92db9343fd7a17b64afa6e88d (diff) | |
download | aports-6733406c00bbb3c5e5b64a6dc362075c58c49ceb.tar.bz2 aports-6733406c00bbb3c5e5b64a6dc362075c58c49ceb.tar.xz |
testing/py-pynacl: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-pynacl/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/py-pynacl/APKBUILD b/testing/py-pynacl/APKBUILD new file mode 100644 index 0000000000..7aa170f1e5 --- /dev/null +++ b/testing/py-pynacl/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=py-pynacl +_pkgname=${pkgname/py-/} +pkgver=1.1.2 +pkgrel=0 +pkgdesc="Python binding to the Networking and Cryptography (NaCl) library" +url="https://github.com/pyca/pynacl" +arch="all" +license="APACHE2.0" +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" +builddir="$srcdir"/$_pkgname-$pkgver + +check() { + cd "$builddir" + python2 setup.py check + python3 setup.py check +} + +build() { + cd "$builddir" + 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() { + _py python2 + replaces="$pkgname" +} + +_py3() { + _py python3 +} + +sha512sums="ce9c720699fc3b808bb569ad9916f5f5ea97fbc49643117b014374ffaf77ce7972a530e9c4cfaca14dcffc8d676b5bce2facf6da99bf2fda4e319b772075e52e py-pynacl-1.1.2.tar.gz" |