pantry/projects/ffmpeg.org/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

31 lines
592 B
YAML

distributable:
url: https://ffmpeg.org/releases/ffmpeg-{{version.raw}}.tar.gz
sig: ${{url}}.asc
strip-components: 1
# docs: https://trac.ffmpeg.org/wiki/CompilationGuide
versions:
url: https://ffmpeg.org/releases/
match: /ffmpeg-\d+\.\d+(\.\d+)?\.tar\.gz/
strip:
- /ffmpeg-/
- /.tar.gz/
provides:
- bin/ffmpeg
- bin/ffprobe
build:
dependencies:
x86-64:
nasm.us: 2
script: |
./configure --prefix="{{prefix}}"
make --jobs {{hw.concurrency}}
make install
test: |
ffmpeg -filter_complex testsrc=rate=1:duration=1 out.mp4
test -f out.mp4