summaryrefslogtreecommitdiff
path: root/pcr/python-paste-deploy/PKGBUILD
blob: fa87c22316be69480dca97898037fa2e5cbe8ea8 (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
# Contributor (Arch): David Campbell <davekong@archlinux.us>
# Contributor (Arch): Cilyan Olowen <gaknar@gmail.com>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO>

pkgname=python-paste-deploy
pkgver=1.5.0
pkgrel=1
pkgdesc="Load, configure, and compose WSGI applications and servers"
arch=('any')
url="http://pythonpaste.org/deploy/"
license=('custom')
depends=('python2')
makedepends=('setuptools')
source=(http://pypi.python.org/packages/source/P/PasteDeploy/PasteDeploy-${pkgver}.tar.gz)


build() {
  cd $srcdir/PasteDeploy-${pkgver}
  python2 setup.py install --root=$pkgdir --optimize=1
  install -Dm644 docs/license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
	 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
    $(find $pkgdir -name '*.py')
}