[arch-commits] Commit in pyopenssl/repos (staging-any staging-any/PKGBUILD)
Felix Yan
fyan at archlinux.org
Sat Sep 19 16:19:32 UTC 2015
Date: Saturday, September 19, 2015 @ 18:19:32
Author: fyan
Revision: 246648
archrelease: copy trunk to staging-any
Added:
pyopenssl/repos/staging-any/
pyopenssl/repos/staging-any/PKGBUILD
(from rev 246647, pyopenssl/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: pyopenssl/repos/staging-any/PKGBUILD (from rev 246647, pyopenssl/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2015-09-19 16:19:32 UTC (rev 246648)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer : Ionut Biru<ibiru at archlinux.org>
+# Maintainer : Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgbase=pyopenssl
+pkgname=('python-pyopenssl' 'python2-pyopenssl')
+pkgver=0.15.1
+pkgrel=2
+arch=('any')
+url="http://pypi.python.org/pypi/pyOpenSSL"
+license=('LGPL2.1')
+makedepends=('python-setuptools' 'python2-setuptools' 'openssl' 'python-six' 'python2-six' 'python-cryptography' 'python2-cryptography')
+checkdepends=('python-pytest' 'python2-pytest')
+source=(http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${pkgver}.tar.gz)
+md5sums=('f447644afcbd5f0a1f47350fec63a4c6')
+
+prepare() {
+ cd "${srcdir}"
+ cp -a "pyOpenSSL-${pkgver}"{,-python2}
+}
+
+build () {
+ #build python 3 module
+ cd "pyOpenSSL-${pkgver}"
+ python setup.py build
+
+ #build python 2 module
+ cd ../"pyOpenSSL-${pkgver}-python2"
+ python2 setup.py build
+}
+
+check () {
+ cd "pyOpenSSL-${pkgver}"
+ LC_CTYPE=en_US.utf8 python setup.py test || warning "Python 3 tests failed"
+
+ cd ../"pyOpenSSL-${pkgver}-python2"
+ LC_CTYPE=en_US.utf8 python2 setup.py test || warning "Python 2 tests failed"
+}
+
+package_python-pyopenssl(){
+ pkgdesc="Python3 wrapper module around the OpenSSL library"
+ depends=('python>=3.4' 'openssl' 'python-six' 'python-cryptography')
+ replaces=('pyopenssl')
+ provides=('pyopenssl')
+ conflicts=('pyopenssl')
+
+ cd "${srcdir}/pyOpenSSL-${pkgver}"
+ python setup.py install --root "${pkgdir}" --optimize=1
+}
+
+package_python2-pyopenssl(){
+ pkgdesc="Python2 wrapper module around the OpenSSL library"
+ depends=('python2>=2.7' 'openssl' 'python2-six' 'python2-cryptography')
+
+ cd "${srcdir}/pyOpenSSL-${pkgver}-python2"
+ python2 setup.py install --root "${pkgdir}" --optimize=1
+}
More information about the arch-commits
mailing list