wok-6.x annotate lsyncd/receipt @ rev 24447

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 17:51:14 2022 +0000 (2022-02-14)
parents eeba7ab1dffe
children 00e3b45c063b
rev   line source
pankso@10843 1 # SliTaz package receipt.
pankso@10843 2
pankso@10843 3 PACKAGE="lsyncd"
pascal@20419 4 VERSION="2.1.5"
pankso@10843 5 CATEGORY="network"
pankso@10843 6 SHORT_DESC="Live Syncing (Mirror) Daemon."
pankso@10843 7 MAINTAINER="pankso@slitaz.org"
pascal@15299 8 LICENSE="GPL2"
pankso@10843 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20674 10 WEB_SITE="https://axkibe.github.io/lsyncd/"
pankso@10843 11 WGET_URL="http://lsyncd.googlecode.com/files/$TARBALL"
pankso@10843 12
pankso@10843 13 DEPENDS="lua"
pankso@10843 14 BUILD_DEPENDS="lua-dev"
pankso@10843 15
pascal@24447 16 # What is the latest version available today?
pascal@24447 17 current_version()
pascal@24447 18 {
pascal@24447 19 wget -O - https://github.com/lsyncd/lsyncd/tags 2>/dev/null | \
pascal@24447 20 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
pascal@24447 21 }
pascal@24447 22
pankso@10843 23 # Rules to configure and make the package.
pankso@10843 24 compile_rules()
pankso@10843 25 {
pankso@10843 26 ./configure $CONFIGURE_ARGS LDFLAGS="$LDFLAGS -ldl" &&
pankso@10843 27 make && make install
pankso@10843 28 }
pankso@10843 29
pankso@10843 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10843 31 genpkg_rules()
pankso@10843 32 {
pankso@10843 33 mkdir -p $fs/usr
pankso@10843 34 cp -a $install/usr/bin $fs/usr
pankso@10843 35 }