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

Felix Yan fyan at archlinux.org
Sat Sep 19 16:56:59 UTC 2015


    Date: Saturday, September 19, 2015 @ 18:56:59
  Author: fyan
Revision: 141024

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  python-salsa20/repos/community-staging-i686/
  python-salsa20/repos/community-staging-i686/PKGBUILD
    (from rev 141023, python-salsa20/trunk/PKGBUILD)
  python-salsa20/repos/community-staging-x86_64/
  python-salsa20/repos/community-staging-x86_64/PKGBUILD
    (from rev 141023, python-salsa20/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   50 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

Copied: python-salsa20/repos/community-staging-i686/PKGBUILD (from rev 141023, python-salsa20/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-19 16:56:59 UTC (rev 141024)
@@ -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=3
+pkgdesc='Bindings for the NaCL implementation of Salsa20 and XSalsa20 by D. J. Bernstein'
+arch=('i686' 'x86_64')
+url="http://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.5:$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"
+}

Copied: python-salsa20/repos/community-staging-x86_64/PKGBUILD (from rev 141023, python-salsa20/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-19 16:56:59 UTC (rev 141024)
@@ -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=3
+pkgdesc='Bindings for the NaCL implementation of Salsa20 and XSalsa20 by D. J. Bernstein'
+arch=('i686' 'x86_64')
+url="http://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.5:$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