wok diff cgdb/receipt @ rev 24384

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 06 16:04:43 2022 +0000 (2022-02-06)
parents 370da83187ab
children eec3edc6ef52
line diff
     1.1 --- a/cgdb/receipt	Fri Feb 04 09:24:50 2022 +0000
     1.2 +++ b/cgdb/receipt	Sun Feb 06 16:04:43 2022 +0000
     1.3 @@ -20,9 +20,8 @@
     1.4  # What is the latest version available today?
     1.5  current_version()
     1.6  {
     1.7 -	wget -O - https://sourceforge.net/projects/cgdb/files/cgdb/ 2>/dev/null | \
     1.8 -	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
     1.9 -	sed '/scope="row/!d;s|.*/cgdb/cgdb-||;s|/.*||;q'
    1.10 +	wget -O - https://github.com/cgdb/cgdb/tags 2>/dev/null | \
    1.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
    1.12  }
    1.13  
    1.14  # Rules to configure and make the package.