diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2014-11-23 20:55:44 +0000 |
---|---|---|
committer | Fabian Affolter <fabian@affolter-engineering.ch> | 2014-11-27 07:54:01 +0000 |
commit | 05f1a3901a5cf617d77e585ea12f1df4c1472499 (patch) | |
tree | 46f6190432a4759bff5ec1bdfcb768c20f235be4 /testing/py-libnacl | |
parent | 65bdc09ecdaf0c872d0c7a2d275f5cd752805831 (diff) | |
download | aports-05f1a3901a5cf617d77e585ea12f1df4c1472499.tar.bz2 aports-05f1a3901a5cf617d77e585ea12f1df4c1472499.tar.xz |
testing/py-libnacl: new aport
Python bindings for libsodium/tweetnacl
https://libnacl.readthedocs.org/
Diffstat (limited to 'testing/py-libnacl')
-rw-r--r-- | testing/py-libnacl/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-libnacl/APKBUILD b/testing/py-libnacl/APKBUILD new file mode 100644 index 0000000000..6a4863b47c --- /dev/null +++ b/testing/py-libnacl/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-libnacl +_pkgname=libnacl +pkgver=1.4.0 +pkgrel=0 +pkgdesc="Python bindings for libsodium/tweetnacl" +url="https://libnacl.readthedocs.org/" +arch="noarch" +license="ASL 2.0" +depends="python" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="fd986449d9a2bf22ed9d05989bb46fba libnacl-1.4.0.tar.gz" +sha256sums="fee644e684472b307e864db0d01d81915e7fc2c9fd4a64c15a35e4883102d7d5 libnacl-1.4.0.tar.gz" +sha512sums="5f28ae4f0a2dc482ad5ea9a87431dc0fee42664a77a69ee3328265225c2e0d736869d7a9e3927f530ca00148be36d32ffb72fafe4471302c71ea7e0ff7534643 libnacl-1.4.0.tar.gz" |