From dbe274410893121927b09bb50b663c32520babb0 Mon Sep 17 00:00:00 2001 From: aurelien Date: Sat, 31 May 2014 23:33:00 +0200 Subject: python2-wsgiref --- pcr/python2-wsgiref/PKGBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pcr/python2-wsgiref/PKGBUILD (limited to 'pcr') diff --git a/pcr/python2-wsgiref/PKGBUILD b/pcr/python2-wsgiref/PKGBUILD new file mode 100644 index 000000000..3eafb7c9b --- /dev/null +++ b/pcr/python2-wsgiref/PKGBUILD @@ -0,0 +1,28 @@ +# Contributor: Limao Luo +# Contributor: Philipp Schmidt +# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES + +pkgname=python2-wsgiref +pkgver=0.1.2 +pkgrel=2 +pkgdesc="WSGI (PEP 333) Reference Library" +arch=(any) +url=http://cheeseshop.python.org/pypi/wsgiref +license=(PSF ZPL) +depends=(python2) +makedepends=(python2-setuptools) +source=(http://pypi.python.org/packages/source/w/${pkgname#*-}/${pkgname#*-}-$pkgver.zip) + +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 +} -- cgit v1.2.3-54-g00ecf