distributable:
  url: https://github.com/jetporch/jetporch/archive/refs/tags/v{{version}}.tar.gz
  strip-components: 1

versions:
  github: jetporch/jetporch
  strip: /v/

build:
  dependencies:
    freedesktop.org/pkg-config: '*'
    openssl.org: '*'
    zlib.net: '*'
    rust-lang.org: '>=1.70'
    rust-lang.org/cargo: '*'
  env:
    OPENSSL_STATIC: 1
    ZLIB_STATIC: 1
  script:
  - sh version.sh
  - cargo install --locked --path . --root {{prefix}}

provides:
- bin/jetp

test:
  script:
  -  jetp --version
