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

Felix Yan fyan at archlinux.org
Sat Sep 19 12:38:45 UTC 2015


    Date: Saturday, September 19, 2015 @ 14:38:45
  Author: fyan
Revision: 140770

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

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

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

Copied: python-bcrypt/repos/community-staging-i686/PKGBUILD (from rev 140769, python-bcrypt/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-19 12:38:45 UTC (rev 140770)
@@ -0,0 +1,58 @@
+# $Id$
+# 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>
+
+_pypiname=bcrypt
+pkgbase=python-bcrypt
+pkgname=("python-bcrypt" "python2-bcrypt")
+pkgver=2.0.0
+pkgrel=2
+pkgdesc="Modern password hashing for your software and your servers"
+arch=('i686' 'x86_64')
+url="https://github.com/pyca/bcrypt"
+license=('APACHE')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-cffi' 'python2-cffi'
+             'python-six' 'python2-six' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("git+https://github.com/pyca/bcrypt.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a "$srcdir/$_pypiname" "$srcdir/$_pypiname-py2"
+}
+
+build() {
+  cd "$srcdir/$_pypiname"
+  python setup.py build
+
+  cd "$srcdir/$_pypiname-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/$_pypiname"
+  python setup.py ptr
+
+  cd "$srcdir/$_pypiname-py2"
+  python2 setup.py ptr
+}
+
+package_python-bcrypt() {
+  depends=('python-cffi' 'python-six')
+
+  cd ${srcdir}/$_pypiname
+  python setup.py install --prefix=/usr --root=${pkgdir}
+  install -d ${pkgdir}/usr/share/licenses/$pkgname
+  install -m 644 "$srcdir/bcrypt/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+package_python2-bcrypt() {
+  depends=('python2-cffi' 'python2-six')
+
+  cd ${srcdir}/$_pypiname-py2
+  python2 setup.py install --prefix=/usr --root=${pkgdir}
+  install -d ${pkgdir}/usr/share/licenses/$pkgname
+  install -m 644 "$srcdir/bcrypt/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
+}

Copied: python-bcrypt/repos/community-staging-x86_64/PKGBUILD (from rev 140769, python-bcrypt/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-19 12:38:45 UTC (rev 140770)
@@ -0,0 +1,58 @@
+# $Id$
+# 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>
+
+_pypiname=bcrypt
+pkgbase=python-bcrypt
+pkgname=("python-bcrypt" "python2-bcrypt")
+pkgver=2.0.0
+pkgrel=2
+pkgdesc="Modern password hashing for your software and your servers"
+arch=('i686' 'x86_64')
+url="https://github.com/pyca/bcrypt"
+license=('APACHE')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-cffi' 'python2-cffi'
+             'python-six' 'python2-six' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("git+https://github.com/pyca/bcrypt.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a "$srcdir/$_pypiname" "$srcdir/$_pypiname-py2"
+}
+
+build() {
+  cd "$srcdir/$_pypiname"
+  python setup.py build
+
+  cd "$srcdir/$_pypiname-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/$_pypiname"
+  python setup.py ptr
+
+  cd "$srcdir/$_pypiname-py2"
+  python2 setup.py ptr
+}
+
+package_python-bcrypt() {
+  depends=('python-cffi' 'python-six')
+
+  cd ${srcdir}/$_pypiname
+  python setup.py install --prefix=/usr --root=${pkgdir}
+  install -d ${pkgdir}/usr/share/licenses/$pkgname
+  install -m 644 "$srcdir/bcrypt/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+package_python2-bcrypt() {
+  depends=('python2-cffi' 'python2-six')
+
+  cd ${srcdir}/$_pypiname-py2
+  python2 setup.py install --prefix=/usr --root=${pkgdir}
+  install -d ${pkgdir}/usr/share/licenses/$pkgname
+  install -m 644 "$srcdir/bcrypt/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
+}



More information about the arch-commits mailing list