1 # Maintainer: David Campbell <davekong@archlinux.us>
2 # Contributor: Cilyan Olowen <gaknar@gmail.com>
3 pkgname=python-paste-script
6 pkgdesc="A pluggable command-line frontend, including commands to setup package file layouts"
8 url="http://pythonpaste.org/script/"
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')
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')