Date: Tuesday, March 3, 2015 @ 04:27:39 Author: fyan Revision: 128591
archrelease: copy trunk to community-any Added: obfsproxy/repos/community-any/ obfsproxy/repos/community-any/PKGBUILD (from rev 128590, obfsproxy/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: obfsproxy/repos/community-any/PKGBUILD (from rev 128590, obfsproxy/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2015-03-03 03:27:39 UTC (rev 128591) @@ -0,0 +1,42 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: mutantmonkey <a...@mutantmonkey.in> +# Contributor: Techlive Zheng <techlivezh...@gmail.com> + +pkgname=obfsproxy +pkgver=0.2.13 +pkgrel=1 +pkgdesc="A pluggable transport proxy written in Python" +arch=('any') +url="https://pypi.python.org/pypi/obfsproxy" +license=('BSD') +depends=('python2-crypto' 'python2-pyptlib' 'python2-twisted' + 'python2-yaml' 'python2-setuptools') +optdepends=('python2-gmpy2: speed up some cryptographic operations') +conflicts=('pyobfsproxy' 'obfsproxy-git') +options=('!emptydirs') +source=("https://pypi.python.org/packages/source/o/obfsproxy/obfsproxy-${pkgver}.tar.gz"{,.asc}) +sha256sums=('1e26c2faef1cfcf856ddf60e9647058a7c78fb0d47f05b58a0f847ed7cc41a66' + 'SKIP') +validpgpkeys=('13C81580203AE18BB7C0424E09CC7F5315F271D9') # George Kadianakis + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + # argparse is part of python 2.7+, so we can remove it from install_requires + sed -i "/'argparse',/d" setup.py + + find . -type f \( -name '*.py' -or -executable \) -exec \ + sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + \{\} + +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py install --root="$pkgdir/" --optimize=1 + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: