wok-next diff novnc/receipt @ rev 20978

Small improvements
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Sep 27 01:34:11 2018 +0300 (2018-09-27)
parents a3254b6a96ac
children d5aab818505e
line diff
     1.1 --- a/novnc/receipt	Tue Sep 25 17:35:51 2018 +0300
     1.2 +++ b/novnc/receipt	Thu Sep 27 01:34:11 2018 +0300
     1.3 @@ -1,25 +1,28 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="novnc"
     1.7 -VERSION="201111004"
     1.8 +VERSION="1.0.0"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="VNC client in HTML5/javascript."
    1.11 +SHORT_DESC="VNC client using HTML5 (WebSockets, Canvas) with encryption (wss://) support"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="MPL2"
    1.14 -WEB_SITE="http://github.com/kanaka/noVNC"
    1.15 +WEB_SITE="https://kanaka.github.io/noVNC/"
    1.16  
    1.17 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.18 -WGET_URL="git|git://github.com/kanaka/noVNC.git"
    1.19 -
    1.20 -BUILD_DEPENDS="python python-pil openssl git"
    1.21 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.22 +WGET_URL="https://github.com/novnc/noVNC/archive/v$VERSION.tar.gz"
    1.23  
    1.24  compile_rules() {
    1.25 -	mkdir -p $DESTDIR
    1.26 -	sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh
    1.27 +	mkdir -p $install/usr/share/novnc/
    1.28 +#	sed -i 's#bash#sh#; s#ps -p \([^ ]*\)#ps | grep "^ *\1 "#' utils/launch.sh
    1.29  
    1.30 -	IMAGE=/usr/share/images/slitaz-background.jpg
    1.31 -	[ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js
    1.32 -	cp -a *.html images/favicon.ico utils include $DESTDIR
    1.33 +	cp -r $src/* $install/usr/share/novnc/
    1.34 +
    1.35 +	install -Dm755 utils/launch.sh $install/usr/bin/novnc_server
    1.36 +
    1.37 +	find $install -type f \( -name 'README.md' -o -name '.*' -o -name Makefile \) -delete
    1.38 +	rm -r $install/usr/share/novnc/docs/ $install/usr/share/novnc/utils/
    1.39 +
    1.40 +	cook_pick_docs README.md docs/
    1.41  }
    1.42  
    1.43  genpkg_rules() {
    1.44 @@ -38,7 +41,7 @@
    1.45  
    1.46  
    1.47  EOT
    1.48 -	DEPENDS="python python-numpy"
    1.49 -	SUGGESTED="python-pyopenssl openssl"
    1.50 +	DEPENDS="python-websockify net-tools"
    1.51 +	SUGGESTED="openssl"
    1.52  	TAGS="vnc remote-desktop html5"
    1.53  }