summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraurelien <aurelien@xload.io>2014-05-31 23:33:00 +0200
committeraurelien <aurelien@xload.io>2014-05-31 23:33:00 +0200
commitdbe274410893121927b09bb50b663c32520babb0 (patch)
tree58c293f13b92fc5064f3f1be2b1f88a2563620b1
parentb70c4c7099f7826a3f60d397b4db2cf5f5d5262e (diff)
downloadabslibre-dbe274410893121927b09bb50b663c32520babb0.tar.gz
abslibre-dbe274410893121927b09bb50b663c32520babb0.tar.bz2
abslibre-dbe274410893121927b09bb50b663c32520babb0.zip
python2-wsgiref
-rw-r--r--pcr/python2-wsgiref/PKGBUILD28
1 files changed, 28 insertions, 0 deletions
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 <luolimao+AUR@gmail.com>
+# Contributor: Philipp Schmidt <philschmidt@gmx.net>
+# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+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
+}