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

Felix Yan felixonmars at archlinux.org
Mon Nov 4 05:35:06 UTC 2019


    Date: Monday, November 4, 2019 @ 05:35:06
  Author: felixonmars
Revision: 523211

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 523210, python-salsa20/trunk/PKGBUILD)

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

Copied: python-salsa20/repos/community-staging-x86_64/PKGBUILD (from rev 523210, python-salsa20/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-11-04 05:35:06 UTC (rev 523211)
@@ -0,0 +1,28 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-salsa20
+pkgver=0.3.0
+pkgrel=7
+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')
+depends=('python')
+source=("https://pypi.python.org/packages/source/s/salsa20/salsa20-$pkgver.tar.gz")
+sha512sums=('3d899744aca4f96fa1d0fb244988dc1bfc04fcbe93036c1cc643640cd6229976b9161ab1e197ca7f1cc098af622ddfc7a1a9e43da7d66915adce6247802d5736')
+
+build() {
+  cd salsa20-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd salsa20-$pkgver
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.8:$PYTHONPATH" python -m doctest -v README.rst
+}
+
+package() {
+  cd salsa20-$pkgver
+  python 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