distributable:
  url: https://releases.pagure.org/xmlto/xmlto-0.0.28.tar.gz
  strip-components: 1

versions:
  url: https://releases.pagure.org/xmlto/
  match: /xmlto-\d+\.\d+\.\d+.tar.gz/
  strip:
    - /^xmlto-/
    - /\.tar\.gz$/

dependencies:
  docbook.org: '*'
  github.com/util-linux/util-linux: '*'

  darwin:
    gnome.org/libxslt: '*'

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

provides:
  - bin/xmlif
  - bin/xmlto

test:
  script: xmlto --version | grep {{version}}
