wok diff xtron/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 8b7008c000eb
children
line diff
     1.1 --- a/xtron/receipt	Thu Dec 25 14:03:49 2014 +0100
     1.2 +++ b/xtron/receipt	Sat May 21 21:38:29 2022 +0000
     1.3 @@ -7,12 +7,19 @@
     1.4  MAINTAINER="pascal.bellard@slitaz.org"
     1.5  LICENSE="GPL"
     1.6  TARBALL="$PACKAGE-$VERSION.tgz"
     1.7 -WEB_SITE="ftp://ibiblio.org/pub/Linux/games/arcade/xtron-1.1a.lsm"
     1.8 -WGET_URL="$(dirname $WEB_SITE)/$TARBALL"
     1.9 +WEB_SITE="http://ibiblio.org/pub/Linux/games/arcade/xtron-$VERSION.lsm"
    1.10 +WGET_URL="${WEB_SITE%/*}/$TARBALL"
    1.11  
    1.12  DEPENDS="xorg-libXpm xorg-libXau libxcb"
    1.13  BUILD_DEPENDS="xorg-dev"
    1.14  
    1.15 +# What is the latest version available today?
    1.16 +current_version()
    1.17 +{
    1.18 +	wget -O - ${WGET_URL%/*} 2>/dev/null | \
    1.19 +	sed "/latest/d;/$PACKAGE-/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*\".*|\\1|" | sort -Vr | sed q
    1.20 +}
    1.21 +
    1.22  # Rules to configure and make the package.
    1.23  compile_rules()
    1.24  {