wok view tightvnc/receipt @ rev 25632
Up gtklife (5.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 23 14:06:29 2023 +0000 (8 months ago) |
parents | c3a6f662a1c1 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="tightvnc"
4 VERSION="1.3.10"
5 CATEGORY="x-window"
6 SHORT_DESC="VNC server (graphical remote control)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-${VERSION}_unixsrc.tar.bz2"
10 WEB_SITE="https://www.tightvnc.com/"
11 WGET_URL="$SF_MIRROR/vnc-tight/$TARBALL"
12 DEPENDS="xorg-base-fonts jpeg zlib"
13 BUILD_DEPENDS="xorg-imake xorg-gccmakedep xorg-cf-files xorg-libXp \
14 xorg-libXaw-dev xorg-libXt-dev xorg-xproto xorg-libXau-dev xorg-libXdmcp-dev \
15 xorg-libXmu-dev xorg-xextproto xorg-printproto xorg-kbproto xorg-inputproto \
16 xorg-scrnsaverproto xorg-xauth jpeg-dev zlib-dev xorg-libXrandr-dev"
17 TAGS="remote-desktop vnc"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/vnc-tight/files/TightVNC-unix/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/TightVNC-unix/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 [ -d vnc_unixsrc ] && mv vnc_unixsrc $src
31 cd $src
32 sed -i -e "s| FONTDIR =.*$| FONTDIR = /usr/share/fonts/X11|" \
33 -e 's|\(define DefaultRGBDatabase\) .*|\1 /usr/share/X11/rgb|' \
34 Xvnc/config/cf/X11.tmpl
35 sed -i 's|ArCmdBase clq|ArCmdBase cq|' Xvnc/config/cf/Imake.tmpl
36 xmkmf &&
37 make -j1 World &&
38 cd Xvnc &&
39 ./configure --prefix=/usr $CONFIGURE_ARGS || return 1
40 sed 's|PROTO_DEFINES =|PROTO_DEFINES = -D_XOPEN_SOURCE=500L|' \
41 -i programs/Xserver/os/Makefile lib/font/fc/Makefile || return 1
42 find -name Makefile | xargs sed -i 's|/usr/X11R6/bin|/usr/bin|g'
43 make -j1 &&
44 make -j1 DESTDIR=$DESTDIR install
45 cd .. &&
46 make -j1 DESTDIR=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/bin
53 cp -a $install/usr/bin/Xvnc $fs/usr/bin
54 cp $src/vncpasswd/vncpasswd $fs/usr/bin
55 cat > $fs/usr/bin/startvnc <<EOM
56 #!/bin/sh
58 case "\$1" in
59 ''|:*) ;;
60 *) cat <<EOT
61 Usage: \$0 [display] [geometry] [depth]
62 Default: \$0 :1 1920x1024 24
63 EOT
64 exit 1
65 esac
67 . \$HOME/.config/slitaz/applications.conf
68 Xvnc -ac -geometry \${2:-1920x1024} -depth \${3:-24} :\${1:-1} &
69 export DISPLAY=:\${1:-1}
70 exec \$WINDOW_MANAGER
71 EOM
72 chmod +x $fs/usr/bin/startvnc
73 }