[arch-commits] Commit in python-libnacl/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Dec 25 17:55:25 UTC 2016


    Date: Sunday, December 25, 2016 @ 17:55:25
  Author: foutrelis
Revision: 202176

archrelease: copy trunk to community-staging-any

Added:
  python-libnacl/repos/community-staging-any/
  python-libnacl/repos/community-staging-any/PKGBUILD
    (from rev 202174, python-libnacl/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: python-libnacl/repos/community-staging-any/PKGBUILD (from rev 202174, python-libnacl/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 17:55:25 UTC (rev 202176)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+
+pkgbase=python-libnacl
+pkgname=('python-libnacl' 'python2-libnacl')
+pkgver=1.5.0
+pkgrel=2
+pkgdesc='A simple ctypes based python binding to libsodium'
+arch=('any')
+url='http://libnacl.readthedocs.org'
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'libsodium' 'git')
+source=("git+https://github.com/saltstack/libnacl.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -r libnacl{,-py2}
+}
+
+build() {
+  cd "$srcdir"/libnacl
+  python setup.py build
+
+  cd "$srcdir"/libnacl-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/libnacl
+  python -m unittest discover --start-directory tests -v
+
+  cd "$srcdir"/libnacl-py2
+  python2 -m unittest discover --start-directory tests -v
+}
+
+package_python-libnacl() {
+  depends=('python' 'libsodium')
+
+  cd libnacl
+  python3 setup.py install --root="$pkgdir" -O1
+}
+
+package_python2-libnacl() {
+  depends=('python2' 'libsodium')
+
+  cd libnacl-py2
+  python2 setup.py install --root="$pkgdir" -O1
+}
+



More information about the arch-commits mailing list