wok diff plm2c/receipt @ rev 25775
luajit, wayland, weston: fix current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 15 16:55:07 2024 +0000 (2 months ago) |
parents | ca4434937abf |
children |
line diff
1.1 --- a/plm2c/receipt Sun Mar 22 09:52:23 2015 +0100 1.2 +++ b/plm2c/receipt Sun Sep 15 16:55:07 2024 +0000 1.3 @@ -10,6 +10,15 @@ 1.4 WEB_SITE="http://www.cpm.z80.de/source.html" 1.5 WGET_URL="http://www.cpm.z80.de/download/$TARBALL" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - $WGET_URL 2>/dev/null | \ 1.11 + busybox unzip -p /dev/stdin PLM2C.ZIP | \ 1.12 + busybox unzip -p /dev/stdin plm2c/version.c | \ 1.13 + sed 's|.*sion ||;s| .*||;q' 1.14 +} 1.15 + 1.16 # Rules to configure and make the package. 1.17 compile_rules() 1.18 {