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

Anatol Pomozov anatolik at archlinux.org
Tue Aug 2 12:24:50 UTC 2016


    Date: Tuesday, August 2, 2016 @ 12:24:49
  Author: anatolik
Revision: 184827

archrelease: copy trunk to community-testing-any

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

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

Copied: python-autobahn/repos/community-testing-any/PKGBUILD (from rev 184826, python-autobahn/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2016-08-02 12:24:49 UTC (rev 184827)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Anatol Pomozov
+
+pkgbase=python-autobahn
+pkgname=(python-autobahn python2-autobahn)
+pkgver=0.15.0
+pkgrel=1
+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=('55648b5f60c76076b9947e2da79e92156d876f13')
+
+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