From efbdeced67ed61517772ff1423cb0c97b9473641 Mon Sep 17 00:00:00 2001 From: aurelien Date: Sat, 31 May 2014 23:12:57 +0200 Subject: python2-paste-deploy --- pcr/python2-paste-deploy/PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pcr/python2-paste-deploy/PKGBUILD (limited to 'pcr') diff --git a/pcr/python2-paste-deploy/PKGBUILD b/pcr/python2-paste-deploy/PKGBUILD new file mode 100644 index 000000000..e3c6a08bd --- /dev/null +++ b/pcr/python2-paste-deploy/PKGBUILD @@ -0,0 +1,31 @@ +# Contributor: Limao Luo +# Contributor: David Campbell +# Contributor: Cilyan Olowen +# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES + +_pkgname=PasteDeploy +pkgname=python2-paste-deploy +pkgver=1.5.0 +pkgrel=2 +pkgdesc="Load, configure, and compose WSGI applications and servers" +arch=(any) +url=http://pythonpaste.org/deploy/ +license=(custom) +depends=(python2) +makedepends=(python2-setuptools) +source=(http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz) + +prepare() { + find $_pkgname-$pkgver -name '*.py' -type f -exec sed -ri 's:^#!/usr/bin/(env )?python$:&2:' '{}' \; +} + +build() { + cd $_pkgname-$pkgver/ + python2 setup.py build +} + +package() { + cd $_pkgname-$pkgver/ + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} -- cgit v1.2.3-54-g00ecf