[arch-commits] Commit in python-gevent-websocket/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Fri Nov 1 23:51:09 UTC 2019
Date: Friday, November 1, 2019 @ 23:51:08
Author: arojas
Revision: 522111
Drop python2
Modified:
python-gevent-websocket/trunk/PKGBUILD
----------+
PKGBUILD | 24 ++++--------------------
1 file changed, 4 insertions(+), 20 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-01 23:48:21 UTC (rev 522110)
+++ PKGBUILD 2019-11-01 23:51:08 UTC (rev 522111)
@@ -2,8 +2,7 @@
# Contributor: minus <minus at mnus.de>
_pkgname=gevent-websocket
-pkgbase=python-${_pkgname}
-pkgname=(python-${_pkgname} python2-${_pkgname})
+pkgname=python-${_pkgname}
pkgver=0.10.1
pkgrel=3
pkgdesc='WebSocket library for the gevent networking library'
@@ -10,10 +9,8 @@
url='https://www.gitlab.com/noppo/gevent-websocket'
arch=('any')
license=('Apache')
-makedepends=('python' 'python-gevent' 'gunicorn' 'python-ujson'
- 'cython' 'python-setuptools' 'python-sphinx'
- 'python2' 'python2-gevent' 'python2-gunicorn' 'python2-ujson'
- 'cython2' 'python2-setuptools' 'python2-sphinx')
+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')
@@ -27,13 +24,9 @@
python setup.py build
sphinx-build -b text docs docs/_build/text
sphinx-build -b man docs docs/_build/man
- python2 setup.py build
- sphinx-build2 -b text docs docs/_build2/text
- sphinx-build2 -b man docs docs/_build2/man
}
-package_python-gevent-websocket() {
- depends=('python' 'python-gevent' 'gunicorn' 'python-ujson')
+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}"
@@ -41,13 +34,4 @@
install -Dm 644 docs/_build/man/gevent-websocket.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
}
-package_python2-gevent-websocket() {
- depends=('python2' 'python2-gevent' 'python2-gunicorn' 'python2-ujson')
- cd ${_pkgname}-${pkgver}
- python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
- install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm 644 docs/_build2/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm 644 docs/_build2/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