wok rev 24125

transfig, xfig: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 06 14:55:24 2021 +0000 (2021-10-06)
parents 271622a4c4d7
children 83927a09d38d
files transfig/receipt xfig/receipt
line diff
     1.1 --- a/transfig/receipt	Wed Oct 06 10:26:09 2021 +0100
     1.2 +++ b/transfig/receipt	Wed Oct 06 14:55:24 2021 +0000
     1.3 @@ -14,6 +14,13 @@
     1.4  DEPENDS="libjpeg libpng xorg xorg-libXaw3d xorg-libXpm zlib"
     1.5  BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXaw3d-dev xorg-libXpm-dev zlib-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/mcj/files/ 2>/dev/null | \
    1.11 +	sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
    1.12 +}
    1.13 +
    1.14  # Rules to configure and make the package.
    1.15  compile_rules()
    1.16  {
     2.1 --- a/xfig/receipt	Wed Oct 06 10:26:09 2021 +0100
     2.2 +++ b/xfig/receipt	Wed Oct 06 14:55:24 2021 +0000
     2.3 @@ -15,6 +15,13 @@
     2.4  DEPENDS="jpeg libpng xorg xorg-libXaw3d xorg-libXp"
     2.5  BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXaw3d-dev xorg-libXp"
     2.6  
     2.7 +# What is the latest version available today?
     2.8 +current_version()
     2.9 +{
    2.10 +	wget -O - https://sourceforge.net/projects/mcj/files/ 2>/dev/null | \
    2.11 +	sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
    2.12 +}
    2.13 +
    2.14  # Rules to configure and make the package.
    2.15  compile_rules()
    2.16  {