diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-07-21 03:19:18 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-07-21 03:19:18 -0500 |
commit | 6f65ab485cb9391c75982d0f770442450aeb5450 (patch) | |
tree | 1bfab9253b685ae9dfaef45f2043e166043ac293 | |
parent | 39161b99cebac1d908cabddbc81ff86829fcc2dd (diff) | |
download | abslibre-6f65ab485cb9391c75982d0f770442450aeb5450.tar.gz abslibre-6f65ab485cb9391c75982d0f770442450aeb5450.tar.bz2 abslibre-6f65ab485cb9391c75982d0f770442450aeb5450.zip |
python2-weberror-0.10.3-2: add new package to [pcr]
-rw-r--r-- | pcr/python2-weberror/PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pcr/python2-weberror/PKGBUILD b/pcr/python2-weberror/PKGBUILD new file mode 100644 index 000000000..d1eb475b7 --- /dev/null +++ b/pcr/python2-weberror/PKGBUILD @@ -0,0 +1,30 @@ +#Maintainer (Arch): Brad Pitcher <bradpitcher@gmail.com> +#Contributor (Arch): David Campbell <davekong@archlinux.us> +#Contributor (Arch): Cilyan Olowen <gaknar@gmail.com> +#Contributor (Arch): Axilleas Pipinellis <axilleas archlinux.gr> +#Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> + +pkgname=python2-weberror +pkgver=0.10.3 +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=(http://pypi.python.org/packages/source/W/WebError/WebError-${pkgver}.tar.gz) +md5sums=('84b9990b0baae6fd440b1e60cdd06f9a') + +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') +} |