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

Felix Yan felixonmars at archlinux.org
Thu Jul 19 07:26:43 UTC 2018


    Date: Thursday, July 19, 2018 @ 07:26:42
  Author: felixonmars
Revision: 362364

archrelease: copy trunk to community-staging-any

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

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

Copied: python-engineio/repos/community-staging-any/PKGBUILD (from rev 362363, python-engineio/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-19 07:26:42 UTC (rev 362364)
@@ -0,0 +1,73 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=python-engineio
+pkgname=('python-engineio' 'python2-engineio')
+pkgver=2.1.1
+pkgrel=2
+pkgdesc='Python implementation of the Engine.IO realtime server'
+url='https://github.com/miguelgrinberg/python-engineio'
+arch=('any')
+license=('MIT')
+makedepends=('python-setuptools' 'python-sphinx' 'python-six'
+             'python2-setuptools' 'python2-sphinx' 'python2-six')
+checkdepends=('python-mock' 'python-eventlet' 'python-pytest' 'python-pytest-runner' 'python-aiohttp'
+              'python2-mock' 'python2-eventlet' 'python2-pytest' 'python2-pytest-runner')
+options=('!makeflags')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/miguelgrinberg/python-engineio/archive/v${pkgver}.tar.gz)
+sha256sums=('053e281005f8d649eb31d514dc2fd5b04330c3ee68e84189f32d0f00b290387c')
+sha512sums=('14f081d351424ed1e562b1bb4b350bafe93946dddae6a1a6153292711a1fb93a73929b3b2902c27e5a278d632a34e519937afe6be4ab7512280f5861586abb4a')
+
+prepare() {
+  cp -ra ${pkgbase}-${pkgver}{,-py2}
+}
+
+build() {
+  (cd ${pkgbase}-${pkgver}
+    python setup.py build
+    make -C docs man text SPHINXBUILD=sphinx-build
+  )
+  (cd ${pkgbase}-${pkgver}-py2
+    python2 setup.py build
+    make -C docs man text SPHINXBUILD=sphinx-build2
+  )
+}
+
+check() {
+  (cd ${pkgbase}-${pkgver}
+    python setup.py test
+  )
+  (cd ${pkgbase}-${pkgver}-py2
+    python2 setup.py test
+  )
+}
+
+package_python-engineio() {
+  depends=('python-six')
+  optdepends=(
+    'python-eventlet: eventlet support'
+    'python-aiohttp: aiohttp support'
+  )
+
+  cd ${pkgbase}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 docs/_build/text/index.txt "${pkgdir}/usr/share/doc/${pkgname}/DOCUMENTATION"
+  install -Dm 644 docs/_build/man/engineio.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+package_python2-engineio() {
+  depends=('python2-six')
+  optdepends=(
+    'python2-eventlet: eventlet support'
+  )
+
+  cd ${pkgbase}-${pkgver}-py2
+  python2 setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 docs/_build/text/index.txt "${pkgdir}/usr/share/doc/${pkgname}/DOCUMENTATION"
+  install -Dm 644 docs/_build/man/engineio.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list