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

42 lines
934 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

distributable:
url: https://www.mpg123.de/download/mpg123-{{version}}.tar.bz2
strip-components: 1
versions:
url: https://www.mpg123.de/download/
match: /mpg123-(\d+\.\d+(\.\d+)?)\.tar\.bz2/
strip:
- /mpg123-/
- /.tar.bz2/
build:
dependencies:
# ^^ often packages need dependencies to build, it is very common for
# packages to need a C compiler and make, the above provide those
script: |
./configure $ARGS
make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --disable-debug
- --disable-dependency-tracking
- --prefix={{prefix}}
- --with-module-suffix=.so
- --enable-static
darwin:
ARGS:
- --with-default-audio=coreaudio
aarch64:
ARGS:
- --with-cpu=aarch64
x86-64:
ARGS:
- --with-cpu=x86-64
provides:
- bin/mpg123
# ^^ specify the binaries or tea magic wont work
test:
mpg123 --test fixture.mp3