wok-6.x view novnc/receipt @ rev 25519
created recipes for libuv and libuv-dev 1.44.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:35:59 2023 +0100 (20 months ago) |
parents | 51ef9f5adf6d |
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 current_version()
22 {
23 wget -O - https://github.com/novnc/noVNC/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' \
31 utils/launch.sh
33 IMAGE=/usr/share/images/slitaz-background.jpg
34 [ -s $IMAGE ] &&
35 utils/img2js.py $IMAGE noVNC_logo > include/logo.js
37 mkdir -p $DESTDIR
38 cp -a *.html $DESTDIR
39 cp -a images $DESTDIR
40 cp -a utils $DESTDIR
41 cp -a include $DESTDIR
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share/novnc
48 cp -a $install/* $fs/usr/share/novnc
49 }
51 post_install()
52 {
53 which openssl > /dev/null &&
54 openssl req \
55 -new \
56 -x509 \
57 -keyout "$1/usr/share/novnc/self.pem" \
58 -out "$1/usr/share/novnc/self.pem" \
59 -days 3650 \
60 -nodes <<EOT
61 $(. "$1/etc/locale.conf" ; echo ${LANG#*_})
62 $(cat "$1/etc/TZ")
64 $(cat "$1/etc/hostname")
68 EOT
69 }