[arch-commits] Commit in python-wsaccel/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 15:45:58 UTC 2018


    Date: Saturday, June 30, 2018 @ 15:45:57
  Author: foutrelis
Revision: 348300

archrelease: copy trunk to community-staging-x86_64

Added:
  python-wsaccel/repos/community-staging-x86_64/
  python-wsaccel/repos/community-staging-x86_64/PKGBUILD
    (from rev 348299, python-wsaccel/trunk/PKGBUILD)

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

Copied: python-wsaccel/repos/community-staging-x86_64/PKGBUILD (from rev 348299, python-wsaccel/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-30 15:45:57 UTC (rev 348300)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-wsaccel
+pkgname=('python-wsaccel' 'python2-wsaccel')
+pkgver=0.6.2
+_commit=f16d0b8cd9b54b5b2d7698a5b41d5c38e1564fb6
+pkgrel=3
+pkgdesc='Accelerator for ws4py and AutobahnPython'
+arch=('x86_64')
+url='https://github.com/methane/wsaccel'
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("git+https://github.com/methane/wsaccel.git#commit=$_commit")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a wsaccel{,-py2}
+}
+
+build() {
+  cd "$srcdir"/wsaccel
+  python setup.py build
+
+  cd "$srcdir"/wsaccel-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/wsaccel
+  python setup.py pytest
+
+  cd "$srcdir"/wsaccel-py2
+  python2 setup.py pytest
+}
+
+package_python-wsaccel() {
+  depends=('python')
+
+  cd wsaccel
+  python setup.py install --root="$pkgdir" -O1
+}
+
+package_python2-wsaccel() {
+  depends=('python2')
+
+  cd wsaccel-py2
+  python2 setup.py install --root="$pkgdir" -O1
+}



More information about the arch-commits mailing list