updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / python-paste / PKGBUILD
blob817d37ad89b90f13c4c70a7cda13c6f81ea499ce
1 #Maintainer: David Campbell <davekong@archlinux.us>
2 #Contributor: Cilyan Olowen <gaknar@gmail.com>
3 pkgname=python-paste
4 pkgver=1.7.5.1
5 pkgrel=1
6 pkgdesc="Tools for using a Web Server Gateway Interface stack."
7 arch=('any')
8 url="http://pythonpaste.org/index.html"
9 license=('custom')
10 depends=('python2')
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')
17 build() {
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')