desktop/python-pyopenssl/PKGBUILD

47 lines
1.4 KiB
Bash
Raw Normal View History

pkgbase=pyopenssl
pkgname=('python3-pyopenssl' 'python2-pyopenssl')
2017-07-10 17:39:24 +08:00
pkgver=17.1.0
2016-05-08 05:37:21 +08:00
pkgrel=1
2015-08-10 01:27:50 +08:00
arch=('x86_64')
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)
md5sums=('19fcc38b77fc17f494f671c8ae04b40f')
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')
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')
replaces=('python2-openssl')
provides=('python2-openssl')
conflicts=('python2-openssl')
cd "${srcdir}/pyOpenSSL-${pkgver}-python2"
python2 setup.py install --root "${pkgdir}" --optimize=1
}