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

Felix Yan felixonmars at archlinux.org
Sat Jun 30 16:20:49 UTC 2018


    Date: Saturday, June 30, 2018 @ 16:20:49
  Author: felixonmars
Revision: 348422

archrelease: copy trunk to community-staging-x86_64

Added:
  python-fastpbkdf2/repos/community-staging-x86_64/
  python-fastpbkdf2/repos/community-staging-x86_64/PKGBUILD
    (from rev 348421, python-fastpbkdf2/trunk/PKGBUILD)

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

Copied: python-fastpbkdf2/repos/community-staging-x86_64/PKGBUILD (from rev 348421, python-fastpbkdf2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-30 16:20:49 UTC (rev 348422)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de>
+
+pkgbase=python-fastpbkdf2
+pkgname=(python-fastpbkdf2 python2-fastpbkdf2)
+pkgver=0.2
+pkgrel=3
+pkgdesc="A faster implementation of PBKDF2"
+arch=('x86_64')
+license=('Apache')
+url="https://github.com/Ayrx/python-fastpbkdf2"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-cffi' 'python2-cffi' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner') 
+source=("git+https://github.com/Ayrx/python-fastpbkdf2.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a python-fastpbkdf2{,-py2}
+}
+
+build() {
+  cd "$srcdir"/python-fastpbkdf2
+  python setup.py build
+
+  cd "$srcdir"/python-fastpbkdf2-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/python-fastpbkdf2
+  python setup.py pytest
+
+  cd "$srcdir"/python-fastpbkdf2-py2
+  python2 setup.py pytest
+}
+
+package_python-fastpbkdf2() {
+  depends=('python-cffi' 'python-six')
+
+  cd python-fastpbkdf2
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-fastpbkdf2() {
+  depends=('python2-cffi' 'python2-six')
+
+  cd python-fastpbkdf2-py2
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+}



More information about the arch-commits mailing list