[arch-commits] Commit in python-py-bcrypt (repos trunk trunk/PKGBUILD)
Johannes Löthberg
demize at archlinux.org
Tue Jan 17 10:31:49 UTC 2017
Date: Tuesday, January 17, 2017 @ 10:31:49
Author: demize
Revision: 207709
python-py-bcrypt: Import PKGBUILD
Added:
python-py-bcrypt/repos/
python-py-bcrypt/trunk/
python-py-bcrypt/trunk/PKGBUILD
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Added: trunk/PKGBUILD
===================================================================
--- trunk/PKGBUILD (rev 0)
+++ trunk/PKGBUILD 2017-01-17 10:31:49 UTC (rev 207709)
@@ -0,0 +1,50 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: Ivan Shapovalov <intelfx100 at gmail.com>
+
+pkgbase=python-py-bcrypt
+pkgname=(python-py-bcrypt python2-py-bcrypt)
+pkgver=0.4
+pkgrel=1
+
+pkgdesc='bcrypt password hashing and key derivation'
+url='https://pypi.python.org/pypi/py-bcrypt/'
+arch=('i686' 'x86_64')
+license=('BSD')
+
+makedepends=('python-setuptools' 'python2-setuptools')
+
+source=("https://pypi.org/packages/source/p/py-bcrypt/py-bcrypt-$pkgver.tar.gz")
+
+md5sums=('dd8b367d6b716a2ea2e72392525f4e36')
+
+prepare() {
+ cp -a py-bcrypt-$pkgver{,-python2}
+}
+
+build() {
+ cd "$srcdir"/py-bcrypt-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/py-bcrypt-$pkgver-python2
+ python2 setup.py build
+}
+
+package_python-py-bcrypt() {
+ depends=('python')
+
+ cd py-bcrypt-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-py-bcrypt() {
+ depends=('python2')
+
+ cd py-bcrypt-$pkgver-python2
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim: set ts=4 sw=4 tw=0 ft=PKGBUILD :
Property changes on: python-py-bcrypt/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list