pantry/projects/priver.dev/geni/package.yml

25 lines
550 B
YAML
Raw Normal View History

2023-12-27 22:35:52 +03:00
distributable:
url: https://github.com/emilpriver/geni/archive/refs/tags/v{{version}}.tar.gz
2023-12-27 22:35:52 +03:00
strip-components: 1
provides:
- bin/geni
versions:
github: emilpriver/geni
strip: /^v/
2023-12-27 22:35:52 +03:00
build:
dependencies:
rust-lang.org: '>=1.65'
rust-lang.org/cargo: '*'
script:
# 0.0.4 got released without a version bump
- run: sed -i -e 's/"0\.0\.3"/"{{version}}"/g' Cargo.toml src/main.rs
if: '=0.0.4'
- cargo install --locked --path . --root {{prefix}}
2023-12-27 22:35:52 +03:00
test:
script:
- test "$(geni --version)" = "geni v{{version}}"