mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 01:42:56 +02:00
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:
parent
8e864edeed
commit
d87b570026
5 changed files with 25 additions and 37 deletions
|
@ -1 +1 @@
|
|||
youtube-dl
|
||||
yt-dlp
|
1
srcpkgs/youtube-dl
Symbolic link
1
srcpkgs/youtube-dl
Symbolic link
|
@ -0,0 +1 @@
|
|||
yt-dlp
|
|
@ -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
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
pattern="${pkgname}-\K[0-9.]+(?=\.tar)"
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue