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

22 lines
431 B
YAML
Raw Normal View History

distributable:
url: https://github.com/yamafaktory/craftql/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
provides:
- bin/craftql
versions:
github: yamafaktory/craftql/tags
strip: /v/
build:
dependencies:
rust-lang.org: '>=1.56'
rust-lang.org/cargo: '*'
script: |
cargo install --locked --path . --root {{prefix}}
test:
script:
- test "$(craftql --version)" = "craftql {{version}}"