From 3cab08e055006fe48f47052d13bd7e4b91091ddd Mon Sep 17 00:00:00 2001 From: pancake Date: Sun, 3 Jan 2016 00:20:26 +0100 Subject: [PATCH] New package: python-websocket-client-0.35.0 --- srcpkgs/python-websocket-client/template | 36 ++++++++++++++++++++++++ srcpkgs/python3.4-websocket-client | 1 + 2 files changed, 37 insertions(+) create mode 100644 srcpkgs/python-websocket-client/template create mode 120000 srcpkgs/python3.4-websocket-client diff --git a/srcpkgs/python-websocket-client/template b/srcpkgs/python-websocket-client/template new file mode 100644 index 0000000000..cd554e54ee --- /dev/null +++ b/srcpkgs/python-websocket-client/template @@ -0,0 +1,36 @@ +# Template file for 'python-websocket-client' +pkgname=python-websocket-client +version=0.35.0 +revision=1 +noarch=yes +wrksrc="websocket_client-${version}" +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools" +depends="python-six" +pycompile_module="websocket" +short_desc="WebSocket client for Python2" +maintainer="Sergi Alvarez " +homepage="https://github.com/liris/websocket-client" +license="LGPL-2.1" +distfiles="${PYPI_SITE}/w/websocket-client/websocket_client-${version}.tar.gz" +checksum=5ac3ead091be17b680a0dda926aef1a697a2b6cf1e9ac0fbe4bffb14914c2116 + +post_install() { + rm -f ${DESTDIR}/usr/bin/* + vbin build-2.7/scripts-2.7/wsdump.py wsdump + vbin build-3.4/scripts-3.4/wsdump.py wsdump3.4 +} + + +python3.4-websocket-client_package() { + noarch=yes + depends="python3.4-six" + pycompile_version="3.4" + pycompile_module="websocket" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/bin/wsdump3.4 + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python3.4-websocket-client b/srcpkgs/python3.4-websocket-client new file mode 120000 index 0000000000..f9a2f08197 --- /dev/null +++ b/srcpkgs/python3.4-websocket-client @@ -0,0 +1 @@ +python-websocket-client \ No newline at end of file