distributable:
  url: https://www.x.org/archive/individual/util/util-macros-{{version.raw}}.tar.gz
  strip-components: 1

versions:
  url: https://www.x.org/archive/individual/util/
  match: /util-macros-\d+\.\d+(\.\d+)?.tar.gz/
  strip:
    - /util-macros-/
    - /.tar.gz/

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

test:
  dependencies:
    freedesktop.org/pkg-config: '*'
  script: |
    pkg-config --exists xorg-macros
