[arch-commits] Commit in python-waitress/repos (community-any community-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Wed Nov 4 02:28:06 UTC 2015


    Date: Wednesday, November 4, 2015 @ 03:28:06
  Author: fyan
Revision: 145882

archrelease: copy trunk to community-any

Added:
  python-waitress/repos/community-any/
  python-waitress/repos/community-any/PKGBUILD
    (from rev 145881, python-waitress/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: python-waitress/repos/community-any/PKGBUILD (from rev 145881, python-waitress/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-11-04 02:28:06 UTC (rev 145882)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-waitress
+pkgname=('python-waitress' 'python2-waitress')
+pkgver=0.8.10
+pkgrel=1
+pkgdesc="Waitress WSGI server"
+arch=('any')
+license=('ZPL')
+url="https://github.com/Pylons/waitress"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-nose' 'python2-nose')
+source=("git+https://github.com/Pylons/waitress.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a waitress{,-py2}
+}
+
+build() {
+  cd "$srcdir/waitress"
+  python setup.py build
+
+  cd "$srcdir/waitress-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/waitress"
+  nosetests3
+
+  cd "$srcdir/waitress-py2"
+  nosetests2
+}
+
+package_python-waitress() {
+  depends=('python-setuptools')
+
+  cd waitress
+  python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-waitress() {
+  depends=('python2-setuptools')
+
+  cd waitress-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+
+  mv "$pkgdir"/usr/bin/waitress-serve{,2}
+}



More information about the arch-commits mailing list