[arch-commits] Commit in python-websocket-client/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue May 11 17:32:26 UTC 2021
Date: Tuesday, May 11, 2021 @ 17:32:26
Author: felixonmars
Revision: 930310
upgpkg: python-websocket-client 0.59.0-1
Modified:
python-websocket-client/trunk/PKGBUILD
----------+
PKGBUILD | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-11 17:32:07 UTC (rev 930309)
+++ PKGBUILD 2021-05-11 17:32:26 UTC (rev 930310)
@@ -6,38 +6,38 @@
# Contributor: Florian Bruhin <archlinux.org at the-compiler.org>
_pkgbase='websocket-client'
-__pkgbase="${_pkgbase//-/_}"
-pkgname=python-${_pkgbase}
-pkgver=0.58.0
+pkgname=python-$_pkgbase
+pkgver=0.59.0
pkgrel=1
pkgdesc="WebSocket client library for Python"
-arch=(any)
-url="https://github.com/${_pkgbase}/${_pkgbase}"
+arch=('any')
+url="https://github.com/$_pkgbase/$_pkgbase"
license=('LGPL')
depends=('python-six')
makedepends=('python-setuptools')
-source=("https://pypi.io/packages/source/w/${_pkgbase}/${__pkgbase}-${pkgver}.tar.gz")
-sha512sums=('c587945831427a9bddef96be53d20fec7f55ffd7efe2b676dac96b8078ba446ecda85379a4edfc49c36de936516d3994cbd0515decb9b615cd969bde1117167a')
+checkdepends=('python-pysocks')
+source=("https://pypi.io/packages/source/w/$_pkgbase/$_pkgbase-$pkgver.tar.gz")
+sha512sums=('c7f4a0336093de86fd00828049a836477a3c859cc4bddebd9e7d31eb746dab4de8fa11205a5fb182e5df3590964aa73f279310575dfabc4abc32157e80df42b1')
prepare() {
# Not sure why the conditions are not working :/
- sed -i "s/'backports.ssl_match_hostname'//" "${srcdir}/${__pkgbase}-${pkgver}/setup.py"
+ sed -i "s/'backports.ssl_match_hostname'//" $_pkgbase-$pkgver/setup.py
}
build() {
- cd "${srcdir}/${__pkgbase}-${pkgver}"
+ cd $_pkgbase-$pkgver
python setup.py build
}
check() {
- cd "${srcdir}/${__pkgbase}-${pkgver}"
+ cd $_pkgbase-$pkgver
python setup.py test
}
package() {
- cd "${srcdir}/${__pkgbase}-${pkgver}"
+ cd $_pkgbase-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
# vim:set ts=2 sw=2 ft=sh et:
More information about the arch-commits
mailing list