SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "realvnc-viewer"

# SliTaz package receipt.

PACKAGE="realvnc-viewer"
VERSION="4.1.1"
CATEGORY="x-window"
SHORT_DESC="VNC viewer (graphical remote control)."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="vnc4_${VERSION}+X4.3.0.orig.tar.gz"
WEB_SITE="https://www.realvnc.com/"
WGET_URL="https://web.archive.org/web/20230504110204if_/https://launchpadlibrarian.net/201915923/$TARBALL"
DEPENDS="gcc-lib-base xorg-libXdmcp xorg-libXau xorg-libX11 xorg-libXext \
xorg-libICE xorg-libSM util-linux-uuid"
BUILD_DEPENDS="xorg-libXaw-dev xorg-libXt-dev xorg-xproto xorg-libXau-dev \
xorg-libXdmcp-dev xorg-libXmu-dev xorg-xextproto xorg-libXtst-dev"
PROVIDE="vncviewer"
TAGS="remote-desktop vnc"
HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/vnc4_/!d;/orig/!d;s|.*vnc4_\\(.*\\).orig.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    mv vnc4* $src 2> /dev/null
    find $src -name Makefile.linux \; | xargs sed -i 's|uname -m|echo i486|'
    cd $src
    case "$ARCH" in
    arm*) sed -i 's/(AR)/& rc/' common/zlib/Makefile.in ;;
    esac
    for i in unix/tx/TXImage.cxx unix/x0vncserver/Image.cxx \
         common/network/TcpSocket.cxx ; do
        grep -q stdlib $i || sed -i '1i#include <stdlib.h>' $i
    done
    cd unix
    ./configure --prefix=/usr $CONFIGURE_ARGS
    make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin $fs/usr/share
    
    cp -a $src/unix/vncviewer/vncviewer $fs/usr/bin
    cp -a $stuff/* $fs/usr/share
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)