summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoryjun2021-02-01 22:28:31 +0800
committeryjun2021-02-01 22:28:31 +0800
commitc94d0c824254d06b2df0a4eeb24db5a670211995 (patch)
tree747ce2b6b352e1fda7007f8b4eed2a9160ca1083 /PKGBUILD
downloadaur-c94d0c824254d06b2df0a4eeb24db5a670211995.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..571a96c0dda
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: yjun <jerrysteve1101 at gmail dot com>
+
+pkgname=python-socketio4
+_pkgname=${pkgname%4}
+pkgver=4.6.1
+pkgrel=1
+pkgdesc="Python implementation of the Socket.IO realtime server (Ver 4)"
+arch=('any')
+url="https://github.com/miguelgrinberg/python-socketio"
+license=('MIT')
+depends=('python-six'
+ 'python-engineio')
+makedepends=('python-setuptools'
+ 'python-sphinx'
+ 'python-tornado')
+optdepends=('python-tornado: tornado asyncio webserver')
+checkdepends=('python-pytest'
+ 'python-mock')
+conflicts=("$_pkgname")
+source=("https://github.com/miguelgrinberg/python-socketio/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('aa186b447429248369aebe6e1811e811c3da8ba3bb78efb16cd88904fdff7b05')
+
+build() {
+ cd ${_pkgname}-${pkgver}
+
+ python setup.py build
+ make -C docs man text SPHINXBUILD=sphinx-build
+}
+
+check() {
+ cd ${_pkgname}-${pkgver}
+
+ py.test -k 'not test_logger'
+}
+
+package() {
+ cd ${_pkgname}-${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/python-socketio.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+# vim: ts=2 sw=2 et: