diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-07-21 03:40:01 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-07-21 03:40:01 -0500 |
commit | 4b8555c4d8276741ae04cd280e181378dad365b6 (patch) | |
tree | cde7529c7dc87f799e1e482f5e1d8839cd70ad5a /pcr/python2-paste-script | |
parent | 6f65ab485cb9391c75982d0f770442450aeb5450 (diff) | |
download | abslibre-4b8555c4d8276741ae04cd280e181378dad365b6.tar.gz abslibre-4b8555c4d8276741ae04cd280e181378dad365b6.tar.bz2 abslibre-4b8555c4d8276741ae04cd280e181378dad365b6.zip |
python2-paste-script: add new package to [pcr]
Diffstat (limited to 'pcr/python2-paste-script')
-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') +} |