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