diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-07-21 03:15:55 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-07-21 03:15:55 -0500 |
commit | 39161b99cebac1d908cabddbc81ff86829fcc2dd (patch) | |
tree | f21f6329291b08d024ea5fef4b69938391648f68 | |
parent | 4d97a550c9bb74a947b6518e812aec07f557a7e4 (diff) | |
download | abslibre-39161b99cebac1d908cabddbc81ff86829fcc2dd.tar.gz abslibre-39161b99cebac1d908cabddbc81ff86829fcc2dd.tar.bz2 abslibre-39161b99cebac1d908cabddbc81ff86829fcc2dd.zip |
python2-webhelpers: add new package to [pcr]
-rw-r--r-- | pcr/python2-webhelpers/PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pcr/python2-webhelpers/PKGBUILD b/pcr/python2-webhelpers/PKGBUILD new file mode 100644 index 000000000..ef59835fc --- /dev/null +++ b/pcr/python2-webhelpers/PKGBUILD @@ -0,0 +1,26 @@ +#Maintainer (Arch): ParadoxSpiral <paradoxspiral[at]riseup[dot]net> +#Contributor (Arch): Cilyan Olowen <gaknar@gmail.com> +#Contributor (Arch): Nathan Jones <nathanj@insightbb.com> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> + +pkgname=python2-webhelpers +pkgver=1.3 +pkgrel=2 +pkgdesc="A library of helper functions to make writing templates in web applications easier" +depends=('python2') +makedepends=('setuptools') +conflicts=('python-webhelpers') +source=("http://pypi.python.org/packages/source/W/WebHelpers/WebHelpers-$pkgver.tar.gz") +url="http://pypi.python.org/pypi/WebHelpers/1.3" +license=('BSD') +arch=('any') +md5sums=('32749ffadfc40fea51075a7def32588b') + +package() { + cd $srcdir/WebHelpers-$pkgver + python2 setup.py install --root=$pkgdir/ --optimize=1 + install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE + sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + $(find $pkgdir -name '*.py') +} |