[arch-commits] Commit in python-websocket-client/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 15:17:02 UTC 2019
Date: Friday, October 25, 2019 @ 15:17:02
Author: foutrelis
Revision: 518958
archrelease: copy trunk to community-staging-any
Added:
python-websocket-client/repos/community-staging-any/
python-websocket-client/repos/community-staging-any/PKGBUILD
(from rev 518956, python-websocket-client/trunk/PKGBUILD)
----------+
PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
Copied: python-websocket-client/repos/community-staging-any/PKGBUILD (from rev 518956, python-websocket-client/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:17:02 UTC (rev 518958)
@@ -0,0 +1,62 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Matmas <matmas at matmas.net>
+# Contributor: Thomas Gubler <thomasgubler at gmail.com>
+# Contributor: Daniel YC Lin <dlin.tw at gmail>
+# Contributor: Florian Bruhin <archlinux.org at the-compiler.org>
+
+_pkgbase='websocket-client'
+__pkgbase="${_pkgbase//-/_}"
+pkgname=("python-${_pkgbase}" "python2-${_pkgbase}")
+pkgver=0.56.0
+pkgrel=2
+pkgdesc="WebSocket client library for Python"
+arch=(any)
+url="https://github.com/${_pkgbase}/${_pkgbase}"
+license=('LGPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
+source=("https://pypi.io/packages/source/w/${_pkgbase}/${__pkgbase}-${pkgver}.tar.gz")
+sha512sums=('f61497b5fa6deea11d0e81c1c0d3092d1efba9bcdb3427a45f51b81059444a486a9aa6a4d046fc2aa805e855d2c8e68a4ba46669c05a45eb928251c50e2e3a50')
+
+prepare() {
+ # Not sure why the conditions are not working :/
+ sed -i "s/'backports.ssl_match_hostname'//" "${srcdir}/${__pkgbase}-${pkgver}/setup.py"
+
+ cp -a "${srcdir}/${__pkgbase}-${pkgver}"{,-py2}
+}
+
+build() {
+ cd "${srcdir}/${__pkgbase}-${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}/${__pkgbase}-${pkgver}-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "${srcdir}/${__pkgbase}-${pkgver}"
+ python setup.py test
+
+ cd "${srcdir}/${__pkgbase}-${pkgver}-py2"
+ python2 setup.py test
+}
+
+package_python-websocket-client() {
+ depends=('python-six')
+
+ cd "${srcdir}/${__pkgbase}-${pkgver}"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-websocket-client() {
+ depends=('python2-six')
+
+ cd "${srcdir}/${__pkgbase}-${pkgver}-py2"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ mv "$pkgdir"/usr/bin/wsdump{,2}.py
+}
+
+# vim:set ts=2 sw=2 ft=sh et:
More information about the arch-commits
mailing list