# 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 - http://www.opbyte.it/grsync/download.html 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed 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/* }