blob: 85dc132f3002eac350ce3e22ea87f1aca4bee186 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#Maintainer (AUR): ParadoxSpiral <paradoxspiral[at]riseup[dot]net>
#Contributor (AUR): Cilyan Olowen <gaknar@gmail.com>
#Contributor (AUR): Nathan Jones <nathanj@insightbb.com>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=python2-webhelpers
pkgver=1.3
pkgrel=4
pkgdesc="A library of helper functions to make writing templates in web applications easier"
depends=('python2')
makedepends=('python2-setuptools')
conflicts=('python-webhelpers')
source=("https://pypi.python.org/packages/source/W/WebHelpers/WebHelpers-$pkgver.tar.gz")
url="https://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')
}
|