# HG changeset patch # User Pascal Bellard # Date 1649927440 0 # Node ID ea67ada22d065f08c774fcfa86cca003e59ddb1a # Parent a4f828dcc86072d53d5a6aed9be4805e48ffd83e mypaint-brushes: add current_version diff -r a4f828dcc860 -r ea67ada22d06 mypaint-brushes/receipt --- a/mypaint-brushes/receipt Thu Apr 14 08:53:05 2022 +0000 +++ b/mypaint-brushes/receipt Thu Apr 14 09:10:40 2022 +0000 @@ -13,6 +13,13 @@ BUILD_DEPENDS="automake" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/releases*}/tags 2>/dev/null | \ + sed '/archive.*tar/!d;/v[0-9]/!d;s|.*/v*\(.*\).tar.*|\1|' | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() {