wok diff mtr/receipt @ rev 24727

cookutils: add repo-cooking (used by tank)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 15 10:59:31 2022 +0000 (2022-03-15)
parents 241fb98cab1c
children b65543f4a4eb
line diff
     1.1 --- a/mtr/receipt	Tue Feb 15 18:29:48 2022 +0000
     1.2 +++ b/mtr/receipt	Tue Mar 15 10:59:31 2022 +0000
     1.3 @@ -17,8 +17,8 @@
     1.4  # What is the latest version available today?
     1.5  current_version()
     1.6  {
     1.7 -	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
     1.8 -	sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
     1.9 +	wget -O - https://github.com/traviscross/mtr/tags 2>/dev/null | \
    1.10 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
    1.11  }
    1.12  
    1.13  # Rules to configure and make the package.