From 6cd75b1ac44941d762d040d4ba0eb18ed1cb2674 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 1 May 2016 02:20:51 +0200 Subject: [PATCH] python-websocket-client: use alternatives --- srcpkgs/python-websocket-client/template | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/srcpkgs/python-websocket-client/template b/srcpkgs/python-websocket-client/template index 538e9c3c72..2f55b1b72e 100644 --- a/srcpkgs/python-websocket-client/template +++ b/srcpkgs/python-websocket-client/template @@ -1,7 +1,7 @@ # Template file for 'python-websocket-client' pkgname=python-websocket-client version=0.37.0 -revision=1 +revision=2 noarch=yes wrksrc="websocket_client-${version}" build_style=python-module @@ -15,16 +15,12 @@ homepage="https://github.com/liris/websocket-client" license="LGPL-2.1" distfiles="${PYPI_SITE}/w/websocket-client/websocket_client-${version}.tar.gz" checksum=678b246d816b94018af5297e72915160e2feb042e0cde1a9397f502ac3a52f41 +alternatives="websocket-client:wsdump:/usr/bin/wsdump.py2.7" pre_build() { # use system certs rm -f websocket/cacert.pem } -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 @@ -32,8 +28,9 @@ python3.4-websocket-client_package() { pycompile_version="3.4" pycompile_module="websocket" short_desc="${short_desc/Python2/Python3.4}" + alternatives="websocket-client:wsdump:/usr/bin/wsdump.py3.4" pkg_install() { - vmove usr/bin/wsdump3.4 + vmove usr/bin/wsdump.py3.4 vmove usr/lib/python3.4 } }