pantry/projects/priver.dev/geni/package.yml
Emil Priver f45c514222
Geni: Changed so pkgx don't change src/main.rs if version is more then 0.0.3 (#4683)
* upgraded pantry package

* updated package.yml

* updated

* /releases/tags is default behavior

* removed if for version over 0.0.4

* added a v for testing

* =

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
2024-01-01 16:14:34 -05:00

24 lines
550 B
YAML

distributable:
url: https://github.com/emilpriver/geni/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
provides:
- bin/geni
versions:
github: emilpriver/geni
strip: /^v/
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}}
test:
script:
- test "$(geni --version)" = "geni v{{version}}"