distributable:
  url: https://thekelleys.org.uk/dnsmasq/dnsmasq-{{version.raw}}.tar.gz
  strip-components: 1

versions:
  url: https://thekelleys.org.uk/dnsmasq/
  match: /dnsmasq-(\d+\.\d+(\.\d+)?)\.tar\.gz/
  strip:
    - /dnsmasq-/
    - /.tar.gz/

provides:
  - sbin/dnsmasq

build:
  script: |
    make install PREFIX="{{ prefix }}"
  dependencies:
    freedesktop.org/pkg-config: '*'

test: |
  dnsmasq --test
