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

Evangelos Foutras foutrelis at archlinux.org
Mon Dec 26 09:51:15 UTC 2016


    Date: Monday, December 26, 2016 @ 09:51:14
  Author: foutrelis
Revision: 202657

archrelease: copy trunk to community-staging-any

Added:
  python-autobahn/repos/community-staging-any/
  python-autobahn/repos/community-staging-any/PKGBUILD
    (from rev 202656, python-autobahn/trunk/PKGBUILD)

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

Copied: python-autobahn/repos/community-staging-any/PKGBUILD (from rev 202656, python-autobahn/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-26 09:51:14 UTC (rev 202657)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Anatol Pomozov
+
+pkgbase=python-autobahn
+pkgname=(python-autobahn python2-autobahn)
+pkgver=0.17.0
+pkgrel=2
+pkgdesc='Real-time framework for Web, Mobile & Internet of Things'
+arch=(any)
+url='http://autobahn.ws/python/'
+license=(MIT)
+makedepends=(python-setuptools python2-setuptools python-twisted python-six python-txaio python2-twisted python2-six python2-txaio)
+source=(https://pypi.io/packages/source/a/autobahn/autobahn-$pkgver.tar.gz)
+sha1sums=('fe9ff4c0619e5645e4042d789a090098aa740f17')
+
+prepare() {
+  cp -a autobahn-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/autobahn-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/autobahn-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/autobahn-$pkgver"
+  #It requires python-unittest2 in [community]
+  #python setup.py test
+
+  cd "$srcdir/autobahn-$pkgver-py2"
+  #python2 setup.py test
+}
+
+package_python-autobahn() {
+  depends=(python python-twisted python-six python-txaio)
+
+  cd "$srcdir/autobahn-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-autobahn() {
+  depends=(python2 python2-twisted python2-six python2-txaio)
+
+  cd "$srcdir/autobahn-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list