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

provides:
  - bin/rover

dependencies:
  openssl.org: ^1.1
  zlib.net: ^1
  libgit2.org: ^1

versions:
  github: apollographql/rover
  strip: /v/

build:
  dependencies:
    rust-lang.org: '>=1.65'
    rust-lang.org/cargo: '*'
    freedesktop.org/pkg-config: ^0
    linux:
      gnu.org/make: '*'
      perl.org: ^5 # openssl mod
  script:
    cargo install --locked --path . --root {{prefix}}

test:
  script:
    - test "$(rover --version)" = "Rover {{version}}"
