distributable:
  url: https://gnupg.org/ftp/gcrypt/npth/npth-{{version.raw}}.tar.bz2
  strip-components: 1

versions:
  url: https://gnupg.org/ftp/gcrypt/npth/
  match: /npth-(\d+\.\d+(\.\d+)?)\.tar\.bz2/
  strip:
    - /npth-/
    - /.tar.bz2/

provides:
  - bin/npth-config

build:
  script: |
    ./configure --prefix={{prefix}}
    make
    make check
    make install

#FIXME we test using our version, not theirs
test: test "$(npth-config --version).0" = "{{version.raw}}"
