summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e144a3d336bbef220aafe340d158d207831b002 (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
27
28
29
#Maintainer: Brad Pitcher <bradpitcher@gmail.com>
#Contributor: David Campbell <davekong@archlinux.us>
#Contributor: Cilyan Olowen <gaknar@gmail.com>
#Contributor: Axilleas Pipinellis <axilleas archlinux.gr>

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)
md5sums=('d1d7a6b8d60dddcf3005f2474cfc2407')

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')
}