[arch-commits] Commit in python-bcrypt/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Oct 26 04:38:38 UTC 2019
Date: Saturday, October 26, 2019 @ 04:38:38
Author: foutrelis
Revision: 520073
archrelease: copy trunk to community-staging-x86_64
Added:
python-bcrypt/repos/community-staging-x86_64/
python-bcrypt/repos/community-staging-x86_64/PKGBUILD
(from rev 520072, python-bcrypt/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: python-bcrypt/repos/community-staging-x86_64/PKGBUILD (from rev 520072, python-bcrypt/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-26 04:38:38 UTC (rev 520073)
@@ -0,0 +1,58 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Lex Black <autumn-wind at web dot de>
+# Contributor: Igor Nemilentsev <trezorg at gmail.com>
+# Contributor: Alexander Diana <alexander at rouk.org>
+
+pkgbase=python-bcrypt
+pkgname=("python-bcrypt" "python2-bcrypt")
+pkgver=3.1.7
+pkgrel=2
+pkgdesc="Modern password hashing for your software and your servers"
+arch=('x86_64')
+url="https://github.com/pyca/bcrypt"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-cffi' 'python2-cffi'
+ 'python-six' 'python2-six')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pyca/bcrypt/archive/$pkgver.tar.gz")
+sha512sums=('bfe487ac43aa5081a16c7f67787c2aec777a9c42f3f0f64d4dd238e6cf135e248e806a675ecdc5240066e2b5a31773f9c5dd939479e96ec25357e27bced01409')
+
+prepare() {
+ cp -a "$srcdir"/bcrypt-$pkgver{,-py2}
+
+ export LC_CTYPE=en_US.UTF-8
+}
+
+build() {
+ cd "$srcdir"/bcrypt-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/bcrypt-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/bcrypt-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/bcrypt-$pkgver-py2
+ python2 setup.py pytest
+}
+
+package_python-bcrypt() {
+ depends=('python-cffi' 'python-six')
+
+ cd bcrypt-$pkgver
+ python setup.py install --prefix=/usr --root="$pkgdir"
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ install -m 644 "$srcdir"/bcrypt-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname
+}
+
+package_python2-bcrypt() {
+ depends=('python2-cffi' 'python2-six')
+
+ cd bcrypt-$pkgver-py2
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ install -m 644 "$srcdir"/bcrypt-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname
+}
More information about the arch-commits
mailing list