2014-08-25 22:59:31 +08:00
|
|
|
pkgbase=pyopenssl
|
|
|
|
pkgname=('python3-pyopenssl' 'python2-pyopenssl')
|
2017-11-01 06:04:26 +08:00
|
|
|
pkgver=17.3.0
|
2016-05-08 05:37:21 +08:00
|
|
|
pkgrel=1
|
2015-08-10 01:27:50 +08:00
|
|
|
arch=('x86_64')
|
2014-08-25 22:59:31 +08:00
|
|
|
url="http://pypi.python.org/pypi/pyOpenSSL"
|
|
|
|
license=('LGPL2.1')
|
2017-07-10 17:39:24 +08:00
|
|
|
makedepends=('python3-setuptools' 'python2-setuptools' 'openssl' 'python3-six' 'python2-six'
|
|
|
|
'python3-cryptography' 'python2-cryptography')
|
|
|
|
source=(https://pypi.io/packages/source/p/pyOpenSSL/pyOpenSSL-${pkgver}.tar.gz)
|
2017-11-01 06:04:26 +08:00
|
|
|
md5sums=('09dcd307b8d2068f9dd5aaa3a3a88992')
|
2014-08-25 22:59:31 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}"
|
|
|
|
cp -a "pyOpenSSL-${pkgver}"{,-python2}
|
|
|
|
|
|
|
|
#build python 3 module
|
|
|
|
cd "pyOpenSSL-${pkgver}"
|
|
|
|
python3 setup.py build
|
|
|
|
|
|
|
|
#build python 2 module
|
|
|
|
cd ../"pyOpenSSL-${pkgver}-python2"
|
|
|
|
python2 setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
package_python3-pyopenssl(){
|
|
|
|
pkgdesc="Python3 wrapper module around the OpenSSL library"
|
2017-07-10 17:39:24 +08:00
|
|
|
depends=('python3' 'openssl' 'python3-six' 'python3-cryptography')
|
2015-08-10 01:27:50 +08:00
|
|
|
replaces=('pyopenssl' 'python3-openssl')
|
|
|
|
provides=('pyopenssl' 'python3-openssl')
|
|
|
|
conflicts=('pyopenssl' 'python3-openssl')
|
2014-08-25 22:59:31 +08:00
|
|
|
|
|
|
|
cd "${srcdir}/pyOpenSSL-${pkgver}"
|
|
|
|
python3 setup.py install --root "${pkgdir}" --optimize=1
|
|
|
|
}
|
|
|
|
|
|
|
|
package_python2-pyopenssl(){
|
|
|
|
pkgdesc="Python2 wrapper module around the OpenSSL library"
|
2017-07-10 17:39:24 +08:00
|
|
|
depends=('python2' 'openssl' 'python2-six' 'python2-cryptography')
|
2014-08-25 22:59:31 +08:00
|
|
|
replaces=('python2-openssl')
|
|
|
|
provides=('python2-openssl')
|
|
|
|
conflicts=('python2-openssl')
|
|
|
|
|
|
|
|
cd "${srcdir}/pyOpenSSL-${pkgver}-python2"
|
|
|
|
python2 setup.py install --root "${pkgdir}" --optimize=1
|
|
|
|
}
|