wok view grsync/receipt @ rev 24445

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 14:14:23 2022 +0000 (2022-02-14)
parents 39a360ca68eb
children ddc3cc7ce280
line source
1 # SliTaz package receipt.
3 PACKAGE="grsync"
4 VERSION="1.2.6"
5 CATEGORY="network"
6 SHORT_DESC="GTK+ intuitive interface to rsync."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.opbyte.it/grsync/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://www.opbyte.it/release/$TARBALL"
14 DEPENDS="acl gtk+ rsync xorg-libXdamage"
15 BUILD_DEPENDS="gtk+-dev intltool perl-xml-parser xorg-xproto"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - http://www.opbyte.it/grsync/download.html 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
29 chmod +x install-sh
31 ./configure \
32 --prefix=/usr \
33 --infodir=/usr/share/info \
34 --mandir=/usr/share/man \
35 --disable-unity \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/share/grsync $fs/usr/share
48 sed -i s'|#!/bin/bash|#!/bin/sh|' $fs/usr/bin/grsync-batch
49 chmod +x $fs/usr/bin/*
50 }