wok view youtube-dl/receipt @ rev 25620

Up youtube-dl (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 30 10:53:19 2023 +0000 (9 months ago)
parents 8a1b5064cec9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="youtube-dl"
4 VERSION="2021.12.17"
5 CATEGORY="utilities"
6 SHORT_DESC="Downloads videos from various streaming websites."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/ytdl-org/youtube-dl"
11 TARBALL="$PACKAGE-${VERSION//./-}.tar.gz"
12 WGET_URL="https://github.com/ytdl-org/youtube-dl/archive/refs/tags/$VERSION.tar.gz"
14 DEPENDS="python"
15 BUILD_DEPENDS="python python-setuptools"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python setup.py build &&
28 python setup.py install --root=$DESTDIR
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 cp -a $install/usr/bin $fs/usr/
36 cp -a $install/usr/lib $fs/usr/
37 }