wok-6.x annotate novnc/receipt @ rev 24982
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 08 13:06:36 2022 +0000 (2022-05-08) |
parents | ac8ca9758df1 |
children | 3f8793537981 |
rev | line source |
---|---|
pascal@11212 | 1 # SliTaz package receipt. |
pascal@11212 | 2 |
pascal@11212 | 3 PACKAGE="novnc" |
gokhlayeh@11575 | 4 VERSION="201111004" |
pascal@11212 | 5 CATEGORY="network" |
pascal@14850 | 6 SHORT_DESC="VNC client in HTML5/javascript." |
pascal@11212 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14850 | 8 LICENSE="MPL2" |
pascal@20669 | 9 WEB_SITE="https://github.com/kanaka/noVNC" |
gokhlayeh@11575 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
gokhlayeh@11575 | 11 WGET_URL="git|git://github.com/kanaka/noVNC.git" |
pascal@14854 | 12 TAGS="vnc remote-desktop html5" |
pankso@16349 | 13 #HOST_ARCH="any" |
pascal@11212 | 14 |
pascal@11212 | 15 DEPENDS="python python-numpy" |
gokhlayeh@11575 | 16 BUILD_DEPENDS="python python-pil openssl git" |
pascal@11212 | 17 SUGGESTED="pyopenssl openssl" |
pascal@11212 | 18 |
pascal@24139 | 19 current_version() |
pascal@24139 | 20 { |
pascal@24302 | 21 wget -O - https://github.com/novnc/noVNC/releases 2>/dev/null | \ |
pascal@24139 | 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24139 | 23 } |
pascal@24139 | 24 |
pascal@11212 | 25 # Rules to configure and make the package. |
pascal@11212 | 26 compile_rules() |
pascal@11212 | 27 { |
pascal@11212 | 28 mkdir -p $DESTDIR |
pascal@11212 | 29 sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh |
pascal@11212 | 30 IMAGE=/usr/share/images/slitaz-background.jpg |
pascal@11212 | 31 [ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js |
pascal@11212 | 32 cp -a *.html images/favicon.ico utils include $DESTDIR |
pascal@11212 | 33 } |
pascal@11212 | 34 |
pascal@11212 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11212 | 36 genpkg_rules() |
pascal@11212 | 37 { |
pascal@11212 | 38 mkdir -p $fs/usr/share/novnc |
pascal@14850 | 39 cp -a $install/* $fs/usr/share/novnc |
pascal@11212 | 40 } |
pascal@11212 | 41 |
pascal@14850 | 42 post_install() |
pascal@11212 | 43 { |
pascal@11212 | 44 which openssl > /dev/null && |
pascal@18730 | 45 openssl req -new -x509 -keyout "$1/usr/share/novnc/self.pem" \ |
pascal@18730 | 46 -out "$1/usr/share/novnc/self.pem" -days 3650 -nodes <<EOT |
pascal@18730 | 47 $(. "$1/etc/locale.conf" ; echo ${LANG#*_}) |
pascal@18730 | 48 $(cat "$1/etc/TZ") |
pascal@11212 | 49 |
pascal@18730 | 50 $(cat "$1/etc/hostname") |
pascal@11212 | 51 |
pascal@11212 | 52 |
pascal@11212 | 53 |
pascal@11212 | 54 EOT |
pascal@11212 | 55 } |