distributable:
  url: https://ftp.gnu.org/gnu/libidn/libidn-{{version.raw}}.tar.gz
  strip-components: 1

versions:
  url: https://ftp.gnu.org/gnu/libidn/
  match: /libidn-(\d+\.\d+(\.\d+)?)\.tar\.gz/
  strip:
    - /libidn-/
    - /.tar.gz/

build:
  dependencies:
    freedesktop.org/pkg-config: ^0.29
  script: |
    ./configure --prefix="{{prefix}}"
    make --jobs {{ hw.concurrency }} install

provides:
   - bin/idn

test:
  env:
    CHARSET: UTF-8
  script:
    idn "räksmörgås.se" "blåbærgrød.no"
