SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "grsync"

# SliTaz package receipt.

PACKAGE="grsync"
VERSION="1.3.0"
CATEGORY="network"
SHORT_DESC="GTK+ intuitive interface to rsync."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.opbyte.it/grsync/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://www.opbyte.it/release/$TARBALL"

SUGGESTED="grsync-lang"
DEPENDS="acl gtk+ libxml2 rsync xorg-libXdamage"
BUILD_DEPENDS="gtk+-dev intltool libxml2-dev perl-xml-parser xorg-xproto"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/New version/!d;s|>New|>\nNew|g' | sed '/^New/!d;s|New version ||;s|<.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    # Binutils 2.22 break many packages build without LDFLAGS set correctly.
    export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
    chmod +x install-sh

    ./configure                \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --mandir=/usr/share/man        \
        --enable-gtk3=no        \
        --enable-unity=no        \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
        mkdir -p $fs/usr/share

        cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/share/grsync        $fs/usr/share
        sed -i s'|#!/bin/bash|#!/bin/sh|'    $fs/usr/bin/grsync-batch
    chmod +x                $fs/usr/bin/*
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)