mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
pkgbase=pyopenssl
|
|
pkgname=('python3-pyopenssl' 'python2-pyopenssl')
|
|
pkgver=17.1.0
|
|
pkgrel=1
|
|
arch=('x86_64')
|
|
url="http://pypi.python.org/pypi/pyOpenSSL"
|
|
license=('LGPL2.1')
|
|
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"
|
|
depends=('python3' 'openssl' 'python3-six' 'python3-cryptography')
|
|
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"
|
|
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
|
|
}
|