[arch-commits] Commit in python-fastpbkdf2/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 4 01:45:35 UTC 2019
Date: Monday, November 4, 2019 @ 01:45:34
Author: felixonmars
Revision: 522915
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 522914, python-fastpbkdf2/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-fastpbkdf2/repos/community-staging-x86_64/PKGBUILD (from rev 522914, python-fastpbkdf2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-11-04 01:45:34 UTC (rev 522915)
@@ -0,0 +1,49 @@
+# 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=4
+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