distributable:
  url: https://github.com/knik0/faac/archive/refs/tags/{{version.major}}_{{version.minor}}.tar.gz
  strip-components: 1
versions:
  github: knik0/faac
build:
  dependencies:
    gnu.org/autoconf: '*'
    gnu.org/automake: '*'
    gnu.org/libtool: '*'
    linux:
      gnu.org/gcc: '*'
  script:
    - ./bootstrap
    - ./configure $CONFIGURE_ARGS
    - make --jobs {{ hw.concurrency }} install
  env:
    CONFIGURE_ARGS:
      - --disable-debug
      - --disable-dependency-tracking
      - --prefix="{{prefix}}"
      - --libdir="{{prefix}}/lib"
provides:
  - bin/faac
test:
  script:
    - faac test.mp3 -P -o test.m4a
    - ls | grep test.m4a
