summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-05-04 20:44:34 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-05-04 20:44:34 (GMT)
commite85b9416c808cadbcc11974c6ed41b7b31356b7a (patch)
treee87f25ea94d90924ee1a515f1a5e36265db1e574 /abs/core
parent6085abd4119deccd1cfde0432d7309ebe9552958 (diff)
downloadlinhes_pkgbuild-e85b9416c808cadbcc11974c6ed41b7b31356b7a.zip
linhes_pkgbuild-e85b9416c808cadbcc11974c6ed41b7b31356b7a.tar.gz
linhes_pkgbuild-e85b9416c808cadbcc11974c6ed41b7b31356b7a.tar.bz2
pyopenssl: update to .14
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/python_modules/pyopenssl/PKGBUILD52
-rw-r--r--abs/core/python_modules/pyopenssl/__changelog1
2 files changed, 41 insertions, 12 deletions
diff --git a/abs/core/python_modules/pyopenssl/PKGBUILD b/abs/core/python_modules/pyopenssl/PKGBUILD
index a136830..63eeaaf 100644
--- a/abs/core/python_modules/pyopenssl/PKGBUILD
+++ b/abs/core/python_modules/pyopenssl/PKGBUILD
@@ -1,21 +1,49 @@
-# $Id: PKGBUILD 87790 2010-08-18 10:10:07Z ibiru $
+# $Id$
# Maintainer : Ionut Biru<ibiru@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
-pkgname=pyopenssl
-pkgver=0.10
-pkgrel=4
-pkgdesc="pyOpenSSL is a Python interface to the OpenSSL library"
-arch=('i686' 'x86_64')
-url="http://pyopenssl.sourceforge.net"
-license=('LGPL')
-depends=('python2' 'openssl')
+pkgbase=pyopenssl
+pkgname=('python2-pyopenssl')
+pkgver=0.14
+pkgrel=3
+arch=('any')
+url="http://pypi.python.org/pypi/pyOpenSSL"
+license=('LGPL2.1')
+makedepends=('python2-setuptools' 'openssl' 'python2-six' 'python2-cryptography')
source=(http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${pkgver}.tar.gz)
-md5sums=('34db8056ec53ce80c7f5fc58bee9f093')
+md5sums=('8579ff3a1d858858acfba5f046a4ddf7')
build() {
- cd "${srcdir}/pyOpenSSL-${pkgver}"
+ 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
- python2 setup.py install --prefix="$pkgdir/usr" --optimize=1
}
+#package_python-pyopenssl(){
+# pkgdesc="Python3 wrapper module around the OpenSSL library"
+# depends=('python>=3.3' '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')
+ replaces=('pyopenssl')
+ provides=('pyopenssl')
+ conflicts=('pyopenssl')
+
+ cd "${srcdir}/pyOpenSSL-${pkgver}-python2"
+ python2 setup.py install --root "${pkgdir}" --optimize=1
+}
diff --git a/abs/core/python_modules/pyopenssl/__changelog b/abs/core/python_modules/pyopenssl/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/pyopenssl/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff