updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / python-tlslite / PKGBUILD
blobd1d3fdb64da1bf62944b91fea3e2b73f1d2c6aa0
1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
2 pkgname=python-tlslite
3 pkgver=0.3.8
4 pkgrel=2
5 pkgdesc="SSL/TLS support for Python, with numerous options."
6 arch=('any')
7 url="http://trevp.net/tlslite/"
8 license=('custom:public domain')
9 depends=('python2')
10 optdepends=(
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')
18 build() {
19   cd ${srcdir}/tlslite-${pkgver}
21   python2 setup.py build
24 package() {
25   cd ${srcdir}/tlslite-${pkgver}
26   python2 setup.py install --root=${pkgdir}
27   
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|" \
32     \{\} +