updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-paste-script / PKGBUILD
blobf5920ef64b3c36d86fa8308abb8117b6324468a1
1 # Maintainer: David Campbell <davekong@archlinux.us>
2 # Contributor: Cilyan Olowen <gaknar@gmail.com>
3 pkgname=python-paste-script
4 pkgver=1.7.3
5 pkgrel=2
6 pkgdesc="A pluggable command-line frontend, including commands to setup package file layouts"
7 arch=('any')
8 url="http://pythonpaste.org/script/"
9 license=('custom')
10 depends=('python2' 'python-paste>=1.3' 'python-paste-deploy')
11 optdepends=('python-cheetah: for templating' 'python-flup: utilities for WSGI')
12 makedepends=('setuptools')
13 source=(http://pypi.python.org/packages/source/P/PasteScript/PasteScript-${pkgver}.tar.gz)
14 md5sums=('9101a3a23809d3413b39ba8b75dd0bce')
16 build() {
17   cd $srcdir/PasteScript-${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')