wok diff novnc/receipt @ rev 25598

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 12:03:07 2023 +0000 (17 months ago)
parents 51ef9f5adf6d
children 7364ffdaaa60
line diff
     1.1 --- a/novnc/receipt	Sat Jan 15 16:22:40 2022 +0000
     1.2 +++ b/novnc/receipt	Sun Jul 16 12:03:07 2023 +0000
     1.3 @@ -1,21 +1,23 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="novnc"
     1.7 -VERSION="201111004"
     1.8 +VERSION="0.5.1"
     1.9  CATEGORY="network"
    1.10 +TAGS="vnc remote-desktop html5"
    1.11  SHORT_DESC="VNC client in HTML5/javascript."
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="MPL2"
    1.14 -WEB_SITE="https://github.com/kanaka/noVNC"
    1.15 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.16 -WGET_URL="git|git://github.com/kanaka/noVNC.git"
    1.17 -TAGS="vnc remote-desktop html5"
    1.18 +WEB_SITE="https://github.com/novnc/noVNC"
    1.19 +
    1.20 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.21 +WGET_URL="https://github.com/$PACKAGE/noVNC/archive/v$VERSION.tar.gz"
    1.22 +
    1.23 +SUGGESTED="pyopenssl openssl"
    1.24 +DEPENDS="python python-numpy"
    1.25 +BUILD_DEPENDS="python python-pil openssl"
    1.26 +
    1.27  #HOST_ARCH="any"
    1.28  
    1.29 -DEPENDS="python python-numpy"
    1.30 -BUILD_DEPENDS="python python-pil openssl git"
    1.31 -SUGGESTED="pyopenssl openssl"
    1.32 -
    1.33  current_version()
    1.34  {
    1.35  	wget -O - https://github.com/novnc/noVNC/releases 2>/dev/null | \
    1.36 @@ -25,25 +27,37 @@
    1.37  # Rules to configure and make the package.
    1.38  compile_rules()
    1.39  {
    1.40 +	sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' \
    1.41 +		utils/launch.sh
    1.42 +
    1.43 +	IMAGE=/usr/share/images/slitaz-background.jpg
    1.44 +	[ -s $IMAGE ] &&
    1.45 +	utils/img2js.py $IMAGE noVNC_logo > include/logo.js
    1.46 +
    1.47  	mkdir -p $DESTDIR
    1.48 -	sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh
    1.49 -	IMAGE=/usr/share/images/slitaz-background.jpg
    1.50 -	[ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js
    1.51 -	cp -a *.html images/favicon.ico utils include $DESTDIR
    1.52 +	cp -a *.html			$DESTDIR
    1.53 +	cp -a images			$DESTDIR
    1.54 +	cp -a utils			$DESTDIR
    1.55 +	cp -a include			$DESTDIR
    1.56  }
    1.57  
    1.58  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.59  genpkg_rules()
    1.60  {
    1.61  	mkdir -p $fs/usr/share/novnc
    1.62 -	cp -a $install/* $fs/usr/share/novnc
    1.63 +	cp -a $install/*	$fs/usr/share/novnc
    1.64  }
    1.65  
    1.66  post_install()
    1.67  {
    1.68  	which openssl > /dev/null &&
    1.69 -	openssl req -new -x509 -keyout "$1/usr/share/novnc/self.pem" \
    1.70 -		-out "$1/usr/share/novnc/self.pem" -days 3650 -nodes <<EOT
    1.71 +	openssl	req					\
    1.72 +		-new					\
    1.73 +		-x509					\
    1.74 +		-keyout "$1/usr/share/novnc/self.pem"	\
    1.75 +		-out "$1/usr/share/novnc/self.pem"	\
    1.76 +		-days 3650				\
    1.77 +		-nodes <<EOT
    1.78  $(. "$1/etc/locale.conf" ; echo ${LANG#*_})
    1.79  $(cat "$1/etc/TZ")
    1.80