wok-next view novnc/receipt @ rev 20718

paulstretch: fix build
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun May 27 15:09:21 2018 +0300 (2018-05-27)
parents c4e53a39395a
children a3254b6a96ac
line source
1 # SliTaz package receipt v2.
3 PACKAGE="novnc"
4 VERSION="201111004"
5 CATEGORY="network"
6 SHORT_DESC="VNC client in HTML5/javascript."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MPL2"
9 WEB_SITE="http://github.com/kanaka/noVNC"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="git|git://github.com/kanaka/noVNC.git"
14 BUILD_DEPENDS="python python-pil openssl git"
16 compile_rules() {
17 mkdir -p $DESTDIR
18 sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh
20 IMAGE=/usr/share/images/slitaz-background.jpg
21 [ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js
22 cp -a *.html images/favicon.ico utils include $DESTDIR
23 }
25 genpkg_rules() {
26 copy @std
27 }
29 post_install() {
30 which openssl >/dev/null &&
31 openssl req -new -x509 -keyout "$1/usr/share/novnc/self.pem" \
32 -out "$1/usr/share/novnc/self.pem" -days 3650 -nodes <<EOT
33 $(. "$1/etc/locale.conf" ; echo ${LANG#*_})
34 $(cat "$1/etc/TZ")
36 $(cat "$1/etc/hostname")
40 EOT
41 DEPENDS="python python-numpy"
42 SUGGESTED="pyopenssl openssl"
43 TAGS="vnc remote-desktop html5"
44 }