mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
31 lines
780 B
YAML
31 lines
780 B
YAML
distributable:
|
|
url: https://github.com/yt-dlp/yt-dlp/releases/download/{{version}}/yt-dlp.tar.gz
|
|
strip-components: 1
|
|
|
|
#NOTE copy-pasta from mesonbuild.com
|
|
#TODO make a brewkit/ script to do this automatically
|
|
|
|
versions:
|
|
github: yt-dlp/yt-dlp
|
|
strip: /^yt-dlp /
|
|
|
|
dependencies:
|
|
python.org: 3
|
|
gnu.org/bash: '>=2' # for our venv/relocation scripts: feel free to fix that
|
|
|
|
build:
|
|
script: |
|
|
export VERSION={{version}}
|
|
export PREFIX={{prefix}}
|
|
export PYTHON_VERSION={{deps.python.org.version}}
|
|
export PYTHON_VERSION_MAJ={{deps.python.org.version.major}}
|
|
export PYTHON_VERSION_MIN={{deps.python.org.version.minor}}
|
|
"$SRCROOT"/props/python-venv.sh yt-dlp yt-dlp.com
|
|
|
|
|
|
test: |
|
|
yt-dlp --simulate https://youtu.be/pOtd1cbOP7k
|
|
|
|
provides:
|
|
- bin/yt-dlp
|