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

Felix Yan fyan at nymeria.archlinux.org
Mon Mar 17 06:51:08 UTC 2014


    Date: Monday, March 17, 2014 @ 07:51:07
  Author: fyan
Revision: 208033

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

Added:
  python-cryptography/repos/staging-i686/
  python-cryptography/repos/staging-i686/PKGBUILD
    (from rev 208032, python-cryptography/trunk/PKGBUILD)
  python-cryptography/repos/staging-x86_64/
  python-cryptography/repos/staging-x86_64/PKGBUILD
    (from rev 208032, python-cryptography/trunk/PKGBUILD)

-------------------------+
 staging-i686/PKGBUILD   |   53 ++++++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   53 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 106 insertions(+)

Copied: python-cryptography/repos/staging-i686/PKGBUILD (from rev 208032, python-cryptography/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2014-03-17 06:51:07 UTC (rev 208033)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+
+pkgbase=python-cryptography
+pkgname=('python-cryptography' 'python2-cryptography')
+pkgver=0.2.2
+pkgrel=2
+pkgdesc="A package designed to expose cryptographic recipes and primitives to Python developers"
+arch=('i686' 'x86_64')
+license=('Apache')
+url="http://pypi.python.org/pypi/cryptography"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'python-cffi' 'python2-cffi')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("http://pypi.python.org/packages/source/c/cryptography/cryptography-${pkgver}.tar.gz")
+md5sums=('f002a442c8c5c7463bf8d2f11f6c3128')
+
+check() {
+   # Check python3 module
+   cd "${srcdir}"/cryptography-${pkgver}
+   python3 setup.py test
+
+   # Check python2 module
+   cd "${srcdir}"/cryptography-${pkgver}-python2
+   python2 setup.py test
+}
+ 
+prepare() {
+   cp -a cryptography-${pkgver}{,-python2}
+}
+
+build() {
+   # Build python 3 module
+   cd cryptography-${pkgver}
+   python3 setup.py build
+ 
+   # Build python 2 module
+   cd ../cryptography-${pkgver}-python2
+   python2 setup.py build
+}
+ 
+package_python-cryptography() {
+   depends=('python' 'python-six' 'python-cffi')
+ 
+   cd cryptography-${pkgver}
+   python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+ 
+package_python2-cryptography() {
+   depends=('python2' 'python2-six' 'python2-cffi')
+ 
+   cd "${srcdir}/cryptography-${pkgver}-python2"
+   python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}

Copied: python-cryptography/repos/staging-x86_64/PKGBUILD (from rev 208032, python-cryptography/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2014-03-17 06:51:07 UTC (rev 208033)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+
+pkgbase=python-cryptography
+pkgname=('python-cryptography' 'python2-cryptography')
+pkgver=0.2.2
+pkgrel=2
+pkgdesc="A package designed to expose cryptographic recipes and primitives to Python developers"
+arch=('i686' 'x86_64')
+license=('Apache')
+url="http://pypi.python.org/pypi/cryptography"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'python-cffi' 'python2-cffi')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("http://pypi.python.org/packages/source/c/cryptography/cryptography-${pkgver}.tar.gz")
+md5sums=('f002a442c8c5c7463bf8d2f11f6c3128')
+
+check() {
+   # Check python3 module
+   cd "${srcdir}"/cryptography-${pkgver}
+   python3 setup.py test
+
+   # Check python2 module
+   cd "${srcdir}"/cryptography-${pkgver}-python2
+   python2 setup.py test
+}
+ 
+prepare() {
+   cp -a cryptography-${pkgver}{,-python2}
+}
+
+build() {
+   # Build python 3 module
+   cd cryptography-${pkgver}
+   python3 setup.py build
+ 
+   # Build python 2 module
+   cd ../cryptography-${pkgver}-python2
+   python2 setup.py build
+}
+ 
+package_python-cryptography() {
+   depends=('python' 'python-six' 'python-cffi')
+ 
+   cd cryptography-${pkgver}
+   python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+ 
+package_python2-cryptography() {
+   depends=('python2' 'python2-six' 'python2-cffi')
+ 
+   cd "${srcdir}/cryptography-${pkgver}-python2"
+   python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}




More information about the arch-commits mailing list