distributable:
  url: https://www.ibr.cs.tu-bs.de/projects/libsmi/download/libsmi-{{version}}.tar.gz
  strip-components: 1

versions:
  url: https://www.ibr.cs.tu-bs.de/projects/libsmi/download.html
  match: /\d+\.\d+\.\d+/

build:
  dependencies:
    gnu.org/autoconf: '*'
    gnu.org/automake: '*'
    gnu.org/libtool: '*'
  script: |
    autoreconf --force --install --verbose
    ./configure $ARGS
    make --jobs {{ hw.concurrency }} install
  env:
    ARGS:
      - --prefix="{{prefix}}"
      - --disable-debug
      - --disable-dependency-tracking

provides:
  - bin/smidiff
  - bin/smidump
  - bin/smilint
  - bin/smiquery
  - bin/smixlate

test:
  smidiff --version | grep {{version}}