wok diff luafilesystem/receipt @ rev 24308

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 17 18:18:17 2022 +0000 (2022-01-17)
parents a6b3117d9ecb
children bc2b9d9bed6f
line diff
     1.1 --- a/luafilesystem/receipt	Sun Mar 15 09:31:30 2020 +0100
     1.2 +++ b/luafilesystem/receipt	Mon Jan 17 18:18:17 2022 +0000
     1.3 @@ -6,11 +6,18 @@
     1.4  SHORT_DESC="File System Library for the Lua Programming Language (5.2)."
     1.5  MAINTAINER="pascal.bellard@slitaz.org"
     1.6  LICENSE="MIT"
     1.7 -WEB_SITE="https://github.com/keplerproject/luafilesystem/"
     1.8 +WEB_SITE="https://github.com/keplerproject/luafilesystem"
     1.9  
    1.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.11  WGET_URL="${WEB_SITE}archive/v${VERSION//./_}.tar.gz"
    1.12  
    1.13 +# What is the latest version available today?
    1.14 +current_version()
    1.15 +{
    1.16 +	wget -O - $WEB_SITE/tags 2>/dev/null | \
    1.17 +	sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
    1.18 +}
    1.19 +
    1.20  SUGGESTED="lua"
    1.21  BUILD_DEPENDS="lua-dev"
    1.22