wok diff ndpi/receipt @ rev 25769
libmaxminddb, ndpi: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 09:45:40 2024 +0000 (2 months ago) |
parents | ffbe519b44df |
children |
line diff
1.1 --- a/ndpi/receipt Tue Sep 03 14:51:27 2024 +0100 1.2 +++ b/ndpi/receipt Fri Sep 06 09:45:40 2024 +0000 1.3 @@ -16,6 +16,13 @@ 1.4 DEPENDS="libjson-c libpcap" 1.5 BUILD_DEPENDS="autoconf automake libjson-c-dev libpcap-dev libtool" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ 1.11 + sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' 1.12 +} 1.13 + 1.14 # Rules to configure and make the package. 1.15 compile_rules() 1.16 {