distributable:
  url: https://github.com/sekrit-twc/zimg/archive/release-{{version}}.tar.gz
  strip-components: 1

versions:
  github: sekrit-twc/zimg
  strip: /^release-/

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

test: cc test.c -lzimg -o test
