wok view youtube-dl/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 922f061231c2
children 8a1b5064cec9
line source
1 # SliTaz package receipt.
3 PACKAGE="youtube-dl"
4 VERSION="2020.05.08"
5 CATEGORY="utilities"
6 SHORT_DESC="Downloads videos from various streaming websites."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://rg3.github.io/youtube-dl/"
11 TARBALL="$PACKAGE-${VERSION//./-}"
12 WGET_URL="https://yt-dl.org/downloads/$VERSION/youtube-dl"
14 DEPENDS="python"
15 BUILD_DEPENDS="python"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://pypi.org/project/youtube_dl/ 2>/dev/null | \
21 sed '/youtube_dl 2/!d;s|.*dl ||;q'
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/bin
29 cp $src/$TARBALL $fs/usr/bin/$PACKAGE
30 chmod +x $fs/usr/bin/$PACKAGE
31 }