wok-6.x diff wordpress/receipt @ rev 24565
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 25 22:15:31 2022 +0000 (2022-02-25) |
parents | 5e0488ebbbb5 |
children | d364ad3c406c |
line diff
1.1 --- a/wordpress/receipt Sat Jun 27 16:47:12 2020 +0000 1.2 +++ b/wordpress/receipt Fri Feb 25 22:15:31 2022 +0000 1.3 @@ -14,6 +14,13 @@ 1.4 SUGGESTED="apache cherokee" 1.5 DEPENDS="mysql php php-mysql" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - https://core.trac.wordpress.org/browser 2>/dev/null | \ 1.11 + sed 's|<opt|\n&|g' | sed '/tags\/[0-9]/!d;s|.*">tags/||;s|<.*||' | sort -Vr | sed q 1.12 +} 1.13 + 1.14 # Rules to gen a SliTaz package suitable for Tazpkg. 1.15 genpkg_rules() 1.16 {