diff options
author | aurelien <aurelien@xload.io> | 2014-05-31 23:12:57 +0200 |
---|---|---|
committer | aurelien <aurelien@xload.io> | 2014-05-31 23:12:57 +0200 |
commit | efbdeced67ed61517772ff1423cb0c97b9473641 (patch) | |
tree | cdcb3d1ddb7e65781780f00dfe01535a7b9b7008 /pcr/python2-paste-deploy | |
parent | f0d97220c6c7bf8abd40d4e2fd72beb4109f24ff (diff) |
python2-paste-deploy
Diffstat (limited to 'pcr/python2-paste-deploy')
-rw-r--r-- | pcr/python2-paste-deploy/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
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 <luolimao+AUR@gmail.com> +# Contributor: David Campbell <davekong@archlinux.us> +# Contributor: Cilyan Olowen <gaknar@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES <aurelien@hackers.camp> + +_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 +} |