distributable:
  url: https://downloads.sourceforge.net/project/pwgen/pwgen/2.08/pwgen-2.08.tar.gz
  strip-components: 1

display-name: pwgen

versions:
  url: https://sourceforge.net/projects/pwgen/files/pwgen/
  match: _/projects/pwgen/files/pwgen/\d+.\d+/_
  strip:
    - _^/projects/pwgen/files/pwgen/_
    - _/$_

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

provides:
  - bin/pwgen

test: pwgen --secure 20 10
