[arch-commits] Commit in python-salsa20/repos (2 files)
Eli Schwartz
eschwartz at archlinux.org
Mon Jul 2 22:16:58 UTC 2018
Date: Monday, July 2, 2018 @ 22:16:58
Author: eschwartz
Revision: 350285
archrelease: copy trunk to community-staging-x86_64
Added:
python-salsa20/repos/community-staging-x86_64/
python-salsa20/repos/community-staging-x86_64/PKGBUILD
(from rev 350284, python-salsa20/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-salsa20/repos/community-staging-x86_64/PKGBUILD (from rev 350284, python-salsa20/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-07-02 22:16:58 UTC (rev 350285)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-salsa20
+pkgname=("python-salsa20" "python2-salsa20")
+pkgver=0.3.0
+pkgrel=5
+pkgdesc='Bindings for the NaCL implementation of Salsa20 and XSalsa20 by D. J. Bernstein'
+arch=('x86_64')
+url="https://github.com/keybase/python-salsa20"
+license=('BSD')
+makedepends=('python' 'python2')
+source=("https://pypi.python.org/packages/source/s/salsa20/salsa20-$pkgver.tar.gz")
+md5sums=('5f199f3d6c643f05904b9d4a0b5d7e00')
+
+prepare() {
+ cp -a "salsa20-$pkgver"{,-py2}
+}
+
+build() {
+ cd salsa20-$pkgver
+ python setup.py build
+
+ cd ../salsa20-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd salsa20-$pkgver
+ PYTHONPATH="$(pwd)/build/lib.linux-$CARCH-3.7:$PYTHONPATH" python -m doctest -v README.rst
+
+ cd ../salsa20-$pkgver-py2
+ PYTHONPATH="$(pwd)/build/lib.linux-$CARCH-2.7:$PYTHONPATH" python2 -m doctest -v README.rst
+}
+
+package_python-salsa20() {
+ depends=('python')
+
+ cd salsa20-$pkgver
+ python3 setup.py install --root="${pkgdir}" --skip-build --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-salsa20() {
+ depends=('python2')
+
+ cd salsa20-$pkgver-py2
+ python2 setup.py install --root="${pkgdir}" --skip-build --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list