mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-09 23:37:05 +02:00
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py-websocket-client
|
|
_pkgname=websocket_client
|
|
pkgver=0.40.0
|
|
pkgrel=0
|
|
pkgdesc="WebSocket client library for Python"
|
|
url="https://github.com/liris/websocket-client"
|
|
arch="noarch"
|
|
license="LGPL"
|
|
depends=""
|
|
makedepends="python2-dev python3-dev py-setuptools py2-six py3-six"
|
|
install=""
|
|
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
|
|
source="https://files.pythonhosted.org/packages/source/w/websocket-client/$_pkgname-$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python2 setup.py build || return 1
|
|
python3 setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
_py() {
|
|
local python=$1
|
|
pkgdesc="$pkgdesc - $python"
|
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
|
cd "$builddir"
|
|
$python setup.py install --prefix=/usr --root="$subpkgdir"
|
|
}
|
|
|
|
_py2() {
|
|
_py python2
|
|
replaces="$pkgname"
|
|
}
|
|
|
|
_py3() {
|
|
_py python3
|
|
}
|
|
|
|
md5sums="f1cf4cc7869ef97a98e5f4be25c30986 websocket_client-0.40.0.tar.gz"
|
|
sha256sums="40ac14a0c54e14d22809a5c8d553de5a2ae45de3c60105fae53bcb281b3fe6fb websocket_client-0.40.0.tar.gz"
|
|
sha512sums="b57593e14087ff36ab2133fb8077aa207bcdcc04fa82d00eb8fa3b86bdf7fa949c8ca25317a7fe035ef0f36d2c996e036d2b715399813604d5593584d409a5eb websocket_client-0.40.0.tar.gz"
|