wok diff zsnes/receipt @ rev 25580
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 20 07:58:44 2023 +0000 (15 months ago) |
parents | c365fe17a816 |
children |
line diff
1.1 --- a/zsnes/receipt Sat Sep 25 16:21:20 2021 +0000 1.2 +++ b/zsnes/receipt Sat May 20 07:58:44 2023 +0000 1.3 @@ -15,11 +15,11 @@ 1.4 BUILD_DEPENDS="$DEPENDS nasm libsdl-dev libpng-dev ncurses-dev mesa-dev \ 1.5 automake autoconf zlib-dev patch" 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 '/zip/!d;s|.*ZSNES v||;s|/.*||;q' 1.13 + wget -O - $WEB_SITE 2>/dev/null | \ 1.14 + sed '/atest .ersion/!d;s|.*/b> *||;s|[^0-9\.].*||;q' 1.15 } 1.16 1.17 # Rules to configure and make the package.