1 #Maintainer: David Campbell <davekong@archlinux.us>
2 #Contributor: Cilyan Olowen <gaknar@gmail.com>
6 pkgdesc="Tools for using a Web Server Gateway Interface stack."
8 url="http://pythonpaste.org/index.html"
11 makedepends=('setuptools')
12 source=(http://pypi.python.org/packages/source/P/Paste/Paste-${pkgver}.tar.gz)
13 optdepends=('python-flup: WSGI utilities'
14 'python-openid: Support for OpenID')
15 md5sums=('7ea5fabed7dca48eb46dc613c4b6c4ed')
18 cd ${srcdir}/Paste-${pkgver}
19 python2 setup.py install --root=${pkgdir} --optimize=1
20 install -Dm644 docs/license.txt ${pkgdir}/usr/share/licenses/$pkgname/license.txt
21 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
22 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
23 $(find $pkgdir -name '*.py')