这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion packages/python-yt-dlp/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ TERMUX_PKG_DESCRIPTION="A youtube-dl fork with additional features and fixes"
TERMUX_PKG_LICENSE="Unlicense"
TERMUX_PKG_MAINTAINER="Joshua Kahn @TomJo2000"
TERMUX_PKG_VERSION="2025.11.12"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/yt-dlp/yt-dlp/archive/refs/tags/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=6f5f2d716968d6c84d05d179fc1ce50ccca23706b9dbbc3c57fec97a8b9ea440
TERMUX_PKG_DEPENDS="libc++, libexpat, openssl, python, python-brotli, python-pip, python-pycryptodomex"
TERMUX_PKG_RECOMMENDS="ffmpeg"
TERMUX_PKG_RECOMMENDS="ffmpeg, yt-dlp-ejs"
TERMUX_PKG_PYTHON_COMMON_DEPS="hatchling, wheel"
TERMUX_PKG_PYTHON_TARGET_DEPS="mutagen, pycryptodomex, websockets, certifi, brotli, requests, urllib3"
TERMUX_PKG_BUILD_IN_SRC=true
Expand Down Expand Up @@ -35,6 +36,17 @@ termux_step_make_install() {
-t "$TERMUX_PREFIX"/share/zsh/site-functions
install -Dm600 $TERMUX_PKG_HOSTBUILD_DIR/src/completions/fish/yt-dlp.fish \
-t "$TERMUX_PREFIX"/share/fish/completions

# Install config file
if (( TERMUX_ARCH_BITS == 32 )); then
mkdir -p "$TERMUX_PREFIX/etc/yt-dlp"
cat <<- EOF > "$TERMUX_PREFIX/etc/yt-dlp/config"
# yt-dlp-ejs defaults to using Deno as the JS runtime,
# Deno doesn't currently have 32 bit build support.
# So use Node instead on '$TERMUX_ARCH'.
--js-runtimes node
EOF
fi
}

termux_step_create_debscripts() {
Expand Down
13 changes: 13 additions & 0 deletions packages/python-yt-dlp/utils-_utils.py.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.py
index c6ae21f..f7111da 100644
--- a/yt_dlp/utils/_utils.py
+++ b/yt_dlp/utils/_utils.py
@@ -4727,7 +4727,7 @@ def get_user_config_dirs(package_name):

def get_system_config_dirs(package_name):
# /etc/package_name
- yield os.path.join('/etc', package_name)
+ yield os.path.join('@TERMUX_PREFIX@/etc', package_name)


def time_seconds(**kwargs):