distributable:
  url: https://github.com/ivmai/libatomic_ops/releases/download/v{{version}}/libatomic_ops-{{version}}.tar.gz
  strip-components: 1

versions:
  github: ivmai/libatomic_ops

build:
  script:
    - ./configure $ARGS
    - make --jobs {{ hw.concurrency }}
    - make --jobs {{ hw.concurrency }} check
    - make --jobs {{ hw.concurrency }} install
  env:
    ARGS:
      - --prefix="{{prefix}}"
      - --disable-dependency-tracking

test:
  dependencies:
    freedesktop.org/pkg-config: '*'
  script: pkg-config --modversion atomic_ops | grep {{version}}
