# $Id: PKGBUILD 207706 2014-03-13 16:20:18Z fyan $ # Maintainer : Ionut Biru # Contributor: Sergej Pupykin pkgbase=pyopenssl pkgname=('python-pyopenssl' 'python2-pyopenssl') pkgver=0.14 pkgrel=1 arch=('i686' 'x86_64') url="http://pypi.python.org/pypi/pyOpenSSL" license=('LGPL2.1') makedepends=('python-setuptools' 'python2-setuptools' 'openssl') source=(http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${pkgver}.tar.gz) md5sums=('8579ff3a1d858858acfba5f046a4ddf7') build() { cd "${srcdir}" cp -a "pyOpenSSL-${pkgver}"{,-python2} #build python 3 module cd "pyOpenSSL-${pkgver}" python setup.py build #build python 2 module cd ../"pyOpenSSL-${pkgver}-python2" python2 setup.py build } package_python-pyopenssl(){ pkgdesc="Python3 wrapper module around the OpenSSL library" depends=('python>=3.3' 'openssl') 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') cd "${srcdir}/pyOpenSSL-${pkgver}-python2" python2 setup.py install --root "${pkgdir}" --optimize=1 }