wok diff zsnes/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents dd9b0bdf9963
children fbe88431f963
line diff
     1.1 --- a/zsnes/receipt	Wed Mar 18 10:38:57 2020 +0100
     1.2 +++ b/zsnes/receipt	Sat May 21 21:38:29 2022 +0000
     1.3 @@ -15,9 +15,16 @@
     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 +current_version()
     1.8 +{
     1.9 +	wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
    1.10 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    1.11 +	sed '/zip/!d;s|.*ZSNES v||;s|/.*||;q'
    1.12 +}
    1.13 +
    1.14  # Rules to configure and make the package.
    1.15 -
    1.16 -compile_rules() {
    1.17 +compile_rules()
    1.18 +{
    1.19    export LDFLAGS="$LDFLAGS -ltinfo"
    1.20    cd $src
    1.21    patch -p1 -i $stuff/zsnes.patch