wok diff wxHexEditor/receipt @ rev 25028

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 19 17:04:56 2022 +0000 (2022-05-19)
parents 83981c141996
children 29df00e1e19d
line diff
     1.1 --- a/wxHexEditor/receipt	Tue Nov 05 16:57:43 2019 +0100
     1.2 +++ b/wxHexEditor/receipt	Thu May 19 17:04:56 2022 +0000
     1.3 @@ -15,6 +15,15 @@
     1.4  DEPENDS="libgomp wxWidgets"
     1.5  BUILD_DEPENDS="autoconf automake libffi libtool wxWidgets-dev"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
    1.11 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    1.12 +	sed 's| |\n|g' | sed '/http/!d;/download/!d;s|^"||;s|/download",||;q' | xargs wget -O - 2>/dev/null | \
    1.13 +	sed '/src.tar..z/!d;s|.*wxHexEditor-v||;s|-src.*||;q'
    1.14 +}
    1.15 +
    1.16  # Rules to configure and make the package.
    1.17  compile_rules()
    1.18  {