From 05f1a3901a5cf617d77e585ea12f1df4c1472499 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Nov 2014 20:55:44 +0000 Subject: testing/py-libnacl: new aport Python bindings for libsodium/tweetnacl https://libnacl.readthedocs.org/ --- testing/py-libnacl/APKBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 testing/py-libnacl/APKBUILD (limited to 'testing') diff --git a/testing/py-libnacl/APKBUILD b/testing/py-libnacl/APKBUILD new file mode 100644 index 000000000..6a4863b47 --- /dev/null +++ b/testing/py-libnacl/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Fabian Affolter +# Maintainer: Fabian Affolter +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" -- cgit v1.2.3