wok diff ecryptfs-simple/receipt @ rev 24419
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 11 11:14:46 2022 +0000 (2022-02-11) |
parents | 3e9a9990c985 |
children | 241fb98cab1c |
line diff
1.1 --- a/ecryptfs-simple/receipt Thu Jul 08 13:19:25 2021 +0000 1.2 +++ b/ecryptfs-simple/receipt Fri Feb 11 11:14:46 2022 +0000 1.3 @@ -16,10 +16,11 @@ 1.4 BUILD_DEPENDS="cmake libgcrypt-dev pkg-config \ 1.5 ecryptfs-utils-dev util-linux-mount-dev keyutils-dev" 1.6 1.7 +# What is the latest version available today? 1.8 current_version() 1.9 { 1.10 - wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 1.11 - sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.12 + wget -O - https://github.com/mhogomchungu/ecryptfs-simple/tags 2>/dev/null | \ 1.13 + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' 1.14 } 1.15 1.16 # Rules to configure and make the package.