SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "synergy"

# SliTaz package receipt.

PACKAGE="synergy"
VERSION="1.3.6"
CATEGORY="x-window"
SHORT_DESC="Synergy keyboard and mouse sharing."
MAINTAINER="rcx@zoominternet.net"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION-Source.tar.gz"
WEB_SITE="http://synergy-foss.org"
WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL"

DEPENDS="xorg-libX11 xorg-libXtst xorg-libSM xorg-libICE xorg-libXinerama gcc-lib-base"
BUILD_DEPENDS="xorg-dev-proto xorg-libXt-dev xorg-libXtst-dev cmake"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/symless/synergy-core/releases 2>/dev/null | \
    sed '/stable/!d;/archive.*tar/!d;s|.*/v*\(.*\)-stable.tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{        
    cd $src
    
    cmake -D CMAKE_INSTALL_PREFIX=/usr .
    make
    # install binary
    install -d "$DESTDIR/usr/bin/"
    install -Dm755 synergyc $DESTDIR//usr/bin/
    install -Dm755 synergys $DESTDIR/usr/bin/
    install -Dm644 examples/${PACKAGE}.conf "$DESTDIR/etc/${PACKAGE}.conf"
}

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