wok-current diff e4rat/receipt @ rev 24103
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 17 14:12:38 2021 +0000 (2021-09-17) |
parents | 8dcf607135e8 |
children | 999b2a415099 |
line diff
1.1 --- a/e4rat/receipt Sat Feb 25 09:54:23 2017 +0100 1.2 +++ b/e4rat/receipt Fri Sep 17 14:12:38 2021 +0000 1.3 @@ -14,6 +14,13 @@ 1.4 BUILD_DEPENDS="cmake e2fsprogs-dev libboost-system-dev libboost-filesystem-dev \ 1.5 libboost-regex-dev libboost-signals-dev libboost-serialization-dev audit-dev perl" 1.6 1.7 +current_version() 1.8 +{ 1.9 + wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \ 1.10 + sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ 1.11 + sed "/${PACKAGE}_/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).src.*\".*|\\1|;q" 1.12 +} 1.13 + 1.14 # Rules to configure and make the package. 1.15 compile_rules() 1.16 {