pantry/projects/crates.io/click/package.yml

26 lines
487 B
YAML
Raw Normal View History

distributable:
url: https://github.com/databricks/click/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
provides:
- bin/click
versions:
github: databricks/click
strip: /v/
dependencies:
openssl.org: ^1.1
build:
dependencies:
rust-lang.org: '>=1.56'
rust-lang.org/cargo: '*'
freedesktop.org/pkg-config: ^0.29
script: |
cargo install --locked --path . --root {{prefix}}
test:
script:
- test "$(click --version)" = "Click {{version}}"