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

Levente Polyak anthraxx at archlinux.org
Mon Dec 14 18:11:11 UTC 2015


    Date: Monday, December 14, 2015 @ 19:11:11
  Author: anthraxx
Revision: 153315

archrelease: copy trunk to community-any

Added:
  python-flask-socketio/repos/community-any/
  python-flask-socketio/repos/community-any/PKGBUILD
    (from rev 153314, python-flask-socketio/trunk/PKGBUILD)

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

Copied: python-flask-socketio/repos/community-any/PKGBUILD (from rev 153314, python-flask-socketio/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-12-14 18:11:11 UTC (rev 153315)
@@ -0,0 +1,65 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=python-flask-socketio
+pkgname=('python-flask-socketio' 'python2-flask-socketio')
+_pkgname=Flask-SocketIO
+pkgver=1.1
+pkgrel=1
+pkgdesc="Socket.IO integration for Flask applications"
+url="https://flask-socketio.readthedocs.org/"
+arch=('any')
+license=('MIT')
+makedepends=('python-setuptools' 'python-sphinx' 'python-flask' 'python-eventlet' 'python-socketio'
+             'python2-setuptools' 'python2-sphinx' 'python2-flask' 'python2-eventlet' 'python2-socketio')
+checkdepends=('python-coverage' 'python-pytest' 'python2-coverage' 'python2-pytest')
+options=('!makeflags')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/miguelgrinberg/Flask-SocketIO/archive/v${pkgver}.tar.gz)
+sha512sums=('01b399a6ac3eee130ff414a3ded8e3e827d065e1f5b39ddb327ee4cecdf6cbf2d260e179ccf88ead880094c0fd8128e36676b18e1debf0a5e9ea4f65b5a5b79c')
+
+prepare() {
+  cp -ra ${_pkgname}-${pkgver}{,-py2}
+}
+
+build() {
+  (cd ${_pkgname}-${pkgver}
+    python setup.py build
+    make -C docs man text SPHINXBUILD=sphinx-build
+  )
+  (cd ${_pkgname}-${pkgver}-py2
+    python2 setup.py build
+    make -C docs man text SPHINXBUILD=sphinx-build2
+  )
+}
+
+check() {
+  (cd ${_pkgname}-${pkgver}
+    py.test test_socketio.py
+  )
+  (cd ${_pkgname}-${pkgver}-py2
+    py.test2 test_socketio.py
+  )
+}
+
+package_python-flask-socketio() {
+  depends=('python-flask' 'python-eventlet' 'python-socketio')
+
+  cd ${_pkgname}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
+  install -Dm 644 docs/_build/text/index.txt "${pkgdir}/usr/share/doc/${pkgname}/DOCUMENTATION"
+  install -Dm 644 docs/_build/man/flask-socketio.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+package_python2-flask-socketio() {
+  depends=('python2-flask' 'python2-eventlet' 'python-socketio')
+
+  cd ${_pkgname}-${pkgver}-py2
+  python2 setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
+  install -Dm 644 docs/_build/text/index.txt "${pkgdir}/usr/share/doc/${pkgname}/DOCUMENTATION"
+  install -Dm 644 docs/_build/man/flask-socketio.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list