1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
5 pkgdesc="SSL/TLS support for Python, with numerous options."
7 url="http://trevp.net/tlslite/"
8 license=('custom:public domain')
11 'pycrypto: fast ciphers and fast RSA operations'
12 'gmpy: fast RSA and SRP operations'
14 source=(http://trevp.net/tlslite/tlslite-${pkgver}.tar.gz)
15 md5sums=('5e1c19500e30fc7580939c18b435f937')
16 sha1sums=('56e1a5af611a17e3a59d797922bbf0e9cb13d321')
19 cd ${srcdir}/tlslite-${pkgver}
21 python2 setup.py build
25 cd ${srcdir}/tlslite-${pkgver}
26 python2 setup.py install --root=${pkgdir}
28 # Patch to use python2
29 find $pkgdir -type f \( -name '*.py' -or -executable \) -exec \
30 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
31 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \