mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
yt_dlp: bump version
This commit is contained in:
@@ -7,12 +7,12 @@ Some YouTube videos are served using Adobe's proprietary RTMP protocol, which \
|
||||
imposes DRM restrictions and encrypts the connection. yt-dlp is not able \
|
||||
to download these videos by itself."
|
||||
HOMEPAGE="https://github.com/yt-dlp/yt-dlp"
|
||||
COPYRIGHT="2006-2023 youtube-dl and yt-dlp contributors"
|
||||
COPYRIGHT="2006-2024 youtube-dl and yt-dlp contributors"
|
||||
LICENSE="Unlicense"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/yt-dlp/yt-dlp/releases/download/$portVersion/yt-dlp.tar.gz"
|
||||
SOURCE_FILENAME="yt-dlp-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="5408fe5d12cd1c430ee10346770e3d60baad5c63a38b41c8967005e4956780a7"
|
||||
CHECKSUM_SHA256="1db8eade9e860543b655f5f973e26727ac2cc20874dc6fed9a3e78a4a05ee989"
|
||||
SOURCE_DIR="yt-dlp"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
@@ -36,8 +36,8 @@ BUILD_PREREQUIRES="
|
||||
cmd:zip
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39)
|
||||
PYTHON_VERSIONS=(3.9)
|
||||
PYTHON_PACKAGES=(python310)
|
||||
PYTHON_VERSIONS=(3.10)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
@@ -49,20 +49,20 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
REQUIRES_$pythonPackage=\"\n\
|
||||
haiku\n\
|
||||
cmd:python$pythonVersion\n\
|
||||
requests_$pythonPackage\n\
|
||||
\"\
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$pythonPackage
|
||||
build_$pythonPackage
|
||||
hatchling_$pythonPackage
|
||||
installer_$pythonPackage
|
||||
"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
TEST_REQUIRES="
|
||||
flake8_$pythonPackage
|
||||
pytest_$pythonPackage
|
||||
importlib_metadata_$pythonPackage
|
||||
typing_extensions_$pythonPackage
|
||||
"
|
||||
done
|
||||
|
||||
@@ -77,7 +77,8 @@ INSTALL()
|
||||
export PYTHONPATH="$installLocation"
|
||||
rm -rf build
|
||||
mkdir -p "$installLocation"
|
||||
$python setup.py build install --root=/ --prefix="$prefix"
|
||||
$python -m build --wheel --no-isolation
|
||||
$python -m installer -p $prefix dist/*.whl
|
||||
|
||||
rm -rf "$prefix"/share/man
|
||||
mv "$binDir"/yt-dlp "$binDir"/yt-dlp-$pythonPackage
|
||||
@@ -97,6 +98,5 @@ INSTALL()
|
||||
|
||||
TEST()
|
||||
{
|
||||
export PYTHON=/system/bin/python3
|
||||
make offlinetest
|
||||
pytest-3.10 -v -m "not download"
|
||||
}
|
||||
Reference in New Issue
Block a user