wok diff mktorrent/receipt @ rev 24347

Up expat (2.4.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 02 09:41:22 2022 +0000 (2022-02-02)
parents 082c7fcce5a9
children e1e1678c5265
line diff
     1.1 --- a/mktorrent/receipt	Mon Apr 29 16:45:09 2019 +0100
     1.2 +++ b/mktorrent/receipt	Wed Feb 02 09:41:22 2022 +0000
     1.3 @@ -6,7 +6,7 @@
     1.4  SHORT_DESC="Command line utility to create BitTorrent metainfo files."
     1.5  MAINTAINER="pascal.bellard@slitaz.org"
     1.6  LICENSE="GPL2"
     1.7 -WEB_SITE="https://github.com/Rudde/mktorrent/"
     1.8 +WEB_SITE="https://github.com/Rudde/mktorrent"
     1.9  
    1.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.11  WGET_URL="${WEB_SITE}archive/v$VERSION/$TARBALL"
    1.12 @@ -16,6 +16,13 @@
    1.13  
    1.14  HOST_ARCH="i486 arm x86_64"
    1.15  
    1.16 +# What is the latest version available today?
    1.17 +current_version()
    1.18 +{
    1.19 +	wget -O - $WEB_SITE/tags 2>/dev/null | \
    1.20 +	sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
    1.21 +}
    1.22 +
    1.23  # Rules to configure and make the package.
    1.24  compile_rules()
    1.25  {