diff options
Diffstat (limited to 'pcr/python2-paste-script/PKGBUILD')
-rw-r--r-- | pcr/python2-paste-script/PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pcr/python2-paste-script/PKGBUILD b/pcr/python2-paste-script/PKGBUILD new file mode 100644 index 000000000..ad7aeafce --- /dev/null +++ b/pcr/python2-paste-script/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer (Arch): Brad Pitcher <bradpitcher@gmail.com> +# Contributor (Arch): David Campbell <davekong@archlinux.us> +# Contributor (Arch): Cilyan Olowen <gaknar@gmail.com> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> + +pkgname=python2-paste-script +pkgver=1.7.5 +pkgrel=1 +pkgdesc="A pluggable command-line frontend, including commands to setup package file layouts" +arch=('any') +url="http://pythonpaste.org/script/" +license=('custom') +depends=('python2' 'python2-paste>=1.7' 'python2-paste-deploy') +optdepends=('python2-cheetah: for templating' 'python2-flup: utilities for WSGI') +makedepends=('python2-distribute') +source=(http://pypi.python.org/packages/source/P/PasteScript/PasteScript-${pkgver}.tar.gz) +replaces=('python-paste-script') +md5sums=('4c72d78dcb6bb993f30536842c16af4d') + +package() { + cd $srcdir/PasteScript-${pkgver} + python2 setup.py install --root=$pkgdir --optimize=1 + install -Dm644 docs/license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt + sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + $(find $pkgdir -name '*.py') +} |