distributable:
  url: http://dev-www.libreoffice.org/src/cppunit-{{version}}.tar.gz
  strip-components: 1

versions:
  url: https://dev-www.libreoffice.org/src/cppunit/
  match: /cppunit-\d+\.\d+\.\d+.tar.gz/
  strip:
    - /^cppunit-/
    - /\.tar\.gz$/

build:
  script: |
    ./configure $ARGS
    make --jobs {{ hw.concurrency }} install
  env:
    ARGS:
      - --prefix="{{prefix}}"
    linux/aarch64:
      ARGS:
        - --build=aarch64-unknown-linux-gnu

provides:
  - bin/cppunit-config
  - bin/DllPlugInTester

test: cppunit-config --version | grep {{version}}
