[arch-commits] Commit in python-libnacl/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 16:34:24 UTC 2019
Date: Friday, October 25, 2019 @ 16:34:23
Author: felixonmars
Revision: 519471
archrelease: copy trunk to community-staging-any
Added:
python-libnacl/repos/community-staging-any/
python-libnacl/repos/community-staging-any/PKGBUILD
(from rev 519470, python-libnacl/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-libnacl/repos/community-staging-any/PKGBUILD (from rev 519470, python-libnacl/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 16:34:23 UTC (rev 519471)
@@ -0,0 +1,50 @@
+# 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.6.1
+pkgrel=3
+pkgdesc='A simple ctypes based python binding to libsodium'
+arch=('any')
+url='https://libnacl.readthedocs.org'
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'libsodium')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/saltstack/libnacl/archive/v$pkgver.tar.gz")
+sha512sums=('90fd9302cdfbe84acfc7dff0ac95eeb05fd1bb346cd8b220613174d5d1ae5f627be06b4d588fd4a939c49a119ca557d68a06d3cbe1c0d409a253fdca96d944ac')
+
+prepare() {
+ cp -r libnacl-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/libnacl-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/libnacl-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/libnacl-$pkgver
+ python -m unittest discover --start-directory tests -v
+
+ cd "$srcdir"/libnacl-$pkgver-py2
+ python2 -m unittest discover --start-directory tests -v
+}
+
+package_python-libnacl() {
+ depends=('python' 'libsodium')
+
+ cd libnacl-$pkgver
+ python3 setup.py install --root="$pkgdir" -O1
+}
+
+package_python2-libnacl() {
+ depends=('python2' 'libsodium')
+
+ cd libnacl-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" -O1
+}
+
More information about the arch-commits
mailing list