youtube-dl: make transitional package on yt-dlp

- upstream now only releases nightly versions
- currently-packaged version is vulnerable (GHSA-22fp-mf44-f2mq)
- the fork yt-dlp is packaged and maintained, and has a compatibility
  mode we can use

Co-Authored-By: menaechmi <menaechmi+dev@protonmail.com>
This commit is contained in:
classabbyamp 2025-06-13 11:32:17 -04:00 committed by classabbyamp
parent 8e864edeed
commit d87b570026
5 changed files with 25 additions and 37 deletions

View file

@ -1 +1 @@
youtube-dl
yt-dlp

1
srcpkgs/youtube-dl Symbolic link
View file

@ -0,0 +1 @@
yt-dlp

View file

@ -1,34 +0,0 @@
# Template file for 'youtube-dl'
pkgname=youtube-dl
version=2021.12.17
revision=4
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
short_desc="CLI program to download videos from YouTube and other sites"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Unlicense"
homepage="http://ytdl-org.github.io/youtube-dl"
changelog="https://raw.githubusercontent.com/ytdl-org/youtube-dl/master/ChangeLog"
distfiles="https://github.com/ytdl-org/youtube-dl/archive/${version}.tar.gz"
checksum=d095479ccdbc5f42d312faf4a42c7bd009a2efb5703120311b7a86ad6a3197f4
make_check=no # Tests require removed python3-nose
do_check() {
PYTHON=/usr/bin/python3 make offlinetest
}
post_install() {
make youtube-dl.{bash-completion,zsh,fish}
vcompletion youtube-dl.bash-completion bash
vcompletion youtube-dl.zsh zsh
vcompletion youtube-dl.fish fish
rm -r ${DESTDIR}/usr/etc
}
python3-youtube-dl_package() {
depends="youtube-dl"
short_desc+=" - transitional dummy package"
metapackage=yes
}

View file

@ -1 +0,0 @@
pattern="${pkgname}-\K[0-9.]+(?=\.tar)"

View file

@ -1,7 +1,7 @@
# Template file for 'yt-dlp'
pkgname=yt-dlp
version=2025.06.25
revision=1
revision=2
build_style=python3-pep517
make_check_args="-k not((download)or(test_socks))"
hostmakedepends="hatchling"
@ -14,3 +14,25 @@ homepage="https://github.com/yt-dlp/yt-dlp"
changelog="https://raw.githubusercontent.com/yt-dlp/yt-dlp/master/Changelog.md"
distfiles="https://github.com/yt-dlp/yt-dlp/releases/download/${version}/yt-dlp.tar.gz>yt-dlp-$version.tar.gz"
checksum=9416b3891b49f8929ed57789914256ce26930c9bf44980742e838db2100bbbf8
post_install() {
cat <<- "EOF" > youtube-dl
#!/bin/sh
exec yt-dlp --compat-options youtube-dl "$@"
EOF
vbin youtube-dl
}
youtube-dl_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" (transitional compatibility package)"
pkg_install() {
vmove usr/bin/youtube-dl
}
}
python3-youtube-dl_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" (transitional dummy package)"
metapackage=yes
}