updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / python-webtest / PKGBUILD
blob342d3a4978213bd9ce235604136c252f6ab16895
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>
4 pkgname=python-webtest
5 pkgver=1.2.3
6 pkgrel=1
7 pkgdesc="Helper to test WSGI applications"
8 arch=('any')
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')
16 build() {
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')