wok-6.x diff youtube-dl/receipt @ rev 24453
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 15 18:29:48 2022 +0000 (2022-02-15) |
parents | 4899cc5a72a1 |
children | cb67b4f8be05 |
line diff
1.1 --- a/youtube-dl/receipt Fri May 22 07:41:14 2020 +0100 1.2 +++ b/youtube-dl/receipt Tue Feb 15 18:29:48 2022 +0000 1.3 @@ -6,7 +6,7 @@ 1.4 SHORT_DESC="Downloads videos from various streaming websites." 1.5 MAINTAINER="gokhlayeh@slitaz.org" 1.6 LICENSE="MIT" 1.7 -WEB_SITE="http://rg3.github.com/youtube-dl/" 1.8 +WEB_SITE="http://rg3.github.io/youtube-dl/" 1.9 1.10 TARBALL="$PACKAGE-${VERSION//./-}" 1.11 WGET_URL="https://yt-dl.org/downloads/$VERSION/youtube-dl" 1.12 @@ -14,6 +14,13 @@ 1.13 DEPENDS="python" 1.14 BUILD_DEPENDS="python" 1.15 1.16 +# What is the latest version available today? 1.17 +current_version() 1.18 +{ 1.19 + wget -O - https://pypi.org/project/youtube_dl/ 2>/dev/null | \ 1.20 + sed '/youtube_dl 2/!d;s|.*dl ||;q' 1.21 +} 1.22 + 1.23 # Rules to gen a SliTaz package suitable for Tazpkg. 1.24 genpkg_rules() 1.25 {