# HG changeset patch # User Pascal Bellard # Date 1633532124 0 # Node ID 5765a85d3efd4c5dcf9eeaa1621ba2af91d18ab2 # Parent 271622a4c4d75aea7877379ec51baffb506d7495 transfig, xfig: add current_version diff -r 271622a4c4d7 -r 5765a85d3efd transfig/receipt --- a/transfig/receipt Wed Oct 06 10:26:09 2021 +0100 +++ b/transfig/receipt Wed Oct 06 14:55:24 2021 +0000 @@ -14,6 +14,13 @@ DEPENDS="libjpeg libpng xorg xorg-libXaw3d xorg-libXpm zlib" BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXaw3d-dev xorg-libXpm-dev zlib-dev" +# What is the latest version available today? +current_version() +{ + wget -O - https://sourceforge.net/projects/mcj/files/ 2>/dev/null | \ + sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 271622a4c4d7 -r 5765a85d3efd xfig/receipt --- a/xfig/receipt Wed Oct 06 10:26:09 2021 +0100 +++ b/xfig/receipt Wed Oct 06 14:55:24 2021 +0000 @@ -15,6 +15,13 @@ DEPENDS="jpeg libpng xorg xorg-libXaw3d xorg-libXp" BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXaw3d-dev xorg-libXp" +# What is the latest version available today? +current_version() +{ + wget -O - https://sourceforge.net/projects/mcj/files/ 2>/dev/null | \ + sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() {