1 #Maintainer: David Campbell <davekong@archlinux.us>
2 #Contributor: Cilyan Olowen <gaknar@gmail.com>
3 #Contributor: Frederik M.J.V. <freqmod VED iskrembilen Dott kom>
7 pkgdesc="Helper to test WSGI applications"
9 url="http://pythonpaste.org/webtest/"
10 license=('custom:MIT')
11 depends=('python2' 'python2-webob')
12 makedepends=('setuptools')
13 source=(http://pypi.python.org/packages/source/W/WebTest/WebTest-${pkgver}.tar.gz)
14 md5sums=('585f9331467e6d99acaba4051c1c5878')
17 cd ${srcdir}/WebTest-${pkgver}
18 python2 setup.py install --root=${pkgdir} --optimize=1
19 install -Dm644 docs/license.txt ${pkgdir}/usr/share/licenses/$pkgname/license.txt
20 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
21 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
22 $(find $pkgdir -name '*.py')