#Maintainer (AUR): Brad Pitcher #Contributor (AUR): David Campbell #Contributor (AUR): Cilyan Olowen #Contributor (AUR): Axilleas Pipinellis #Maintainer: Omar Vega Ramos pkgname=python2-weberror pkgver=0.13.1 pkgrel=2 pkgdesc="Web Error handling and exception catching." arch=('any') url="http://pylonsproject.org" license=('MIT') depends=('python2' 'python2-webob' 'python2-tempita' 'python2-simplejson' 'python2-paste>=1.7.1' 'python2-pygments') makedepends=('python2-distribute') source=(https://pypi.python.org/packages/source/W/WebError/WebError-${pkgver}.tar.gz) sha256sums=('c19f8bd57de2f1eea1b18a44f1ba1ad27421097c9ecfa0ae754fa42c9cdd9864') package() { cd ${srcdir}/WebError-${pkgver} # Fix permission for files in egg-info chmod 0644 WebError.egg-info/* 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') }