SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "librsync"

# SliTaz package receipt.

PACKAGE="librsync"
VERSION="0.9.7"
CATEGORY="development"
SHORT_DESC="Library for the rsync remote-delta algorithm"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="LGPL2.1"
WEB_SITE="https://librsync.sourceforge.net/"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="zlib bzlib popt"
BUILD_DEPENDS="popt-dev bzip2-dev zlib-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/librsync/files/librsync/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/librsync/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure --prefix=/usr \
        --mandir=/usr/share/man \
        --infodir=/usr/share/info \
        $CONFIGURE_ARGS &&
    make && make DESTDIR=$DESTDIR install
}

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