wok annotate realvnc-viewer/receipt @ rev 25157

updated pugixml (1.10 -> 1.12.1)
author Hans-G?nter Theisgen
date Thu Jun 30 16:40:03 2022 +0100 (2022-06-30)
parents a78610b2eb47
children 41581d281860
rev   line source
pascal@4418 1 # SliTaz package receipt.
pascal@4418 2
pascal@4418 3 PACKAGE="realvnc-viewer"
pascal@4418 4 VERSION="4.1.1"
pascal@4418 5 CATEGORY="x-window"
pascal@4418 6 SHORT_DESC="VNC viewer (graphical remote control)."
pascal@4418 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14850 8 LICENSE="GPL2"
pascal@4418 9 TARBALL="vnc4_${VERSION}+X4.3.0.orig.tar.gz"
pascal@20669 10 WEB_SITE="https://www.realvnc.com/"
pascal@4418 11 WGET_URL="http://ftp.de.debian.org/debian/pool/main/v/vnc4/$TARBALL"
pascal@4418 12 DEPENDS="gcc-lib-base xorg-libXdmcp xorg-libXau xorg-libX11 xorg-libXext \
pankso@12481 13 xorg-libICE xorg-libSM util-linux-uuid"
pascal@4418 14 BUILD_DEPENDS="xorg-libXaw-dev xorg-libXt-dev xorg-xproto xorg-libXau-dev \
pascal@8937 15 xorg-libXdmcp-dev xorg-libXmu-dev xorg-xextproto xorg-libXtst-dev"
pascal@4418 16 PROVIDE="vncviewer"
pascal@13034 17 TAGS="remote-desktop vnc"
pascal@19929 18 HOST_ARCH="i486 arm"
pascal@4418 19
pascal@24419 20 # What is the latest version available today?
pascal@24419 21 current_version()
pascal@24419 22 {
pascal@24419 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24419 24 sed "/latest/d;/vnc4_/!d;/orig/!d;s|.*vnc4_\\(.*\\).orig.*\".*|\\1|" | sort -Vr | sed q
pascal@24419 25 }
pascal@24419 26
pascal@4418 27 # Rules to configure and make the package.
pascal@4418 28 compile_rules()
pascal@4418 29 {
pascal@4418 30 mv vnc4* $src 2> /dev/null
pascal@20212 31 find $src -name Makefile.linux \; | xargs sed -i 's|uname -m|echo i486|'
pascal@4418 32 cd $src
pascal@19929 33 case "$ARCH" in
pascal@19929 34 arm*) sed -i 's/(AR)/& rc/' common/zlib/Makefile.in ;;
pascal@19929 35 esac
pascal@4418 36 for i in unix/tx/TXImage.cxx unix/x0vncserver/Image.cxx \
pascal@4418 37 common/network/TcpSocket.cxx ; do
pascal@4418 38 grep -q stdlib $i || sed -i '1i#include <stdlib.h>' $i
pascal@4418 39 done
pascal@4418 40 cd unix
pascal@4418 41 ./configure --prefix=/usr $CONFIGURE_ARGS
pascal@4418 42 make
pascal@4418 43 }
pascal@4418 44
pascal@4418 45 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4418 46 genpkg_rules()
pascal@4418 47 {
erjo@14847 48 mkdir -p $fs/usr/bin $fs/usr/share
erjo@14847 49
pascal@4418 50 cp -a $src/unix/vncviewer/vncviewer $fs/usr/bin
pascal@14849 51 cp -a $stuff/* $fs/usr/share
pascal@4418 52 }