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

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 23:58:40 UTC 2021


    Date: Tuesday, November 30, 2021 @ 23:58:40
  Author: foutrelis
Revision: 1059076

archrelease: copy trunk to community-staging-any

Added:
  python-gevent-websocket/repos/community-staging-any/
  python-gevent-websocket/repos/community-staging-any/PKGBUILD
    (from rev 1059075, python-gevent-websocket/trunk/PKGBUILD)

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

Copied: python-gevent-websocket/repos/community-staging-any/PKGBUILD (from rev 1059075, python-gevent-websocket/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 23:58:40 UTC (rev 1059076)
@@ -0,0 +1,38 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: minus <minus at mnus.de>
+
+_pkgname=gevent-websocket
+pkgname=python-${_pkgname}
+pkgver=0.10.1
+pkgrel=7
+pkgdesc='WebSocket library for the gevent networking library'
+url='https://www.gitlab.com/noppo/gevent-websocket'
+arch=('any')
+license=('Apache')
+depends=('python' 'python-gevent' 'gunicorn' 'python-ujson')
+makedepends=('cython' 'python-setuptools' 'python-sphinx')
+source=(https://gitlab.com/noppo/gevent-websocket/-/archive/${pkgver}/gevent-websocket-${pkgver}.tar.gz)
+sha512sums=('33473bd20bf8bdab95784bc46093c4f3567d61290731e1980de3b8bf96d71976dca658547320329d5ee5291f54e423a1c7ae8300358bc641eae3c71a1943ea84')
+
+prepare() {
+  cd ${_pkgname}-${pkgver}
+  sed -E "s|release = .*|release = '${pkgver}'|" -i docs/conf.py
+  2to3 -w docs/conf.py
+}
+
+build() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py build
+  sphinx-build -b text docs docs/_build/text
+  sphinx-build -b man docs docs/_build/man
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 docs/_build/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 docs/_build/man/gevent-websocket.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list