distributable:
  url: https://github.com/carlobaldassi/liblqr/archive/refs/tags/v{{version}}.tar.gz
  strip-components: 1

versions:
  github: carlobaldassi/liblqr/tags

dependencies:
  gnome.org/glib: '*'

build:
  dependencies:
    freedesktop.org/pkg-config: '*'
  script: |
    ./configure $ARGS
    make --jobs {{ hw.concurrency }} install
  env:
    ARGS:
      - --prefix="{{prefix}}"
      - --enable-install-man

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