mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py-ws4py
|
|
_pkgname=ws4py
|
|
pkgver=0.4.3
|
|
pkgrel=0
|
|
pkgdesc="WebSocket client and server library for Python 2 and 3 as well as PyPy"
|
|
url="https://github.com/Lawouach/WebSocket-for-Python"
|
|
arch="noarch"
|
|
license="BSD"
|
|
depends=""
|
|
makedepends="python2-dev python3-dev"
|
|
install=""
|
|
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_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
|
|
}
|
|
|
|
sha512sums="732a1f51d5f5f4990d93fcdff69eb928838e61c9e338c81d4e530496ad6aa9e53589e2f4bb7fc3e00ecd85f80ff7801ba7e6eb544775263a5c20910199743371 ws4py-0.4.3.tar.gz"
|