distributable:
  url: https://github.com/OpenPrinting/cups/releases/download/v{{version}}/cups-{{version}}-source.tar.gz
  strip-components: 1

versions:
  github: OpenPrinting/cups

dependencies:
  kerberos.org: '*'
  zlib.net: '*'
  linux:
    openssl.org: ^1.1

build:
  script:
    - ./configure $ARGS
    - make --jobs {{ hw.concurrency }} install
  env:
    ARGS:
      - --prefix="{{prefix}}"
      - --with-components=core
      - --without-bundledir
      - --disable-debug
      - --disable-dependency-tracking

provides:
  - bin/cups-config
  - bin/ippeveprinter
  - bin/ipptool

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