distributable:
  url: https://github.com/yaml/libyaml/releases/download/{{version}}/yaml-{{version}}.tar.gz
  strip-components: 1

versions:
  github: yaml/libyaml

build:
  dependencies:
    gnu.org/libtool: '*'
    gnu.org/autoconf: '*'
  script: |
    ./configure $ARGS
    make --jobs {{ hw.concurrency }} install
  env:
    ARGS:
      - --prefix="{{prefix}}"

test:
  script: cc fixture.c -lyaml -o test
