wok view novnc/receipt @ rev 25600

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 15:14:43 2023 +0000 (16 months ago)
parents 3f8793537981
children
line source
1 # SliTaz package receipt.
3 PACKAGE="novnc"
4 VERSION="0.5.1"
5 CATEGORY="network"
6 TAGS="vnc remote-desktop html5"
7 SHORT_DESC="VNC client in HTML5/javascript."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MPL2"
10 WEB_SITE="https://github.com/novnc/noVNC"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/$PACKAGE/noVNC/archive/v$VERSION.tar.gz"
15 SUGGESTED="pyopenssl openssl"
16 DEPENDS="python python-numpy"
17 BUILD_DEPENDS="python python-pil openssl"
19 #HOST_ARCH="any"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://github.com/novnc/noVNC/releases 2>/dev/null | \
25 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' \
32 utils/launch.sh
34 IMAGE=/usr/share/images/slitaz-background.jpg
35 [ -s $IMAGE ] &&
36 utils/img2js.py $IMAGE noVNC_logo > include/logo.js
38 mkdir -p $DESTDIR
39 cp -a *.html $DESTDIR
40 cp -a images $DESTDIR
41 cp -a utils $DESTDIR
42 cp -a include $DESTDIR
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/share/novnc
49 cp -a $install/* $fs/usr/share/novnc
50 }
52 post_install()
53 {
54 which openssl > /dev/null &&
55 openssl req \
56 -new \
57 -x509 \
58 -keyout "$1/usr/share/novnc/self.pem" \
59 -out "$1/usr/share/novnc/self.pem" \
60 -days 3650 \
61 -nodes <<EOT
62 $(. "$1/etc/locale.conf" ; echo ${LANG#*_})
63 $(cat "$1/etc/TZ")
65 $(cat "$1/etc/hostname")
69 EOT
70 }