pantry/projects/crates.io/gitu/package.yml
Jacob Heider ed57969d9e
+gitu (#5683)
* +gitu

* libgit2
2024-03-22 13:22:21 -04:00

28 lines
579 B
YAML

distributable:
url: https://github.com/altsem/gitu/archive/refs/tags/{{ version.tag }}.tar.gz
strip-components: 1
provides:
- bin/gitu
versions:
github: altsem/gitu
strip: /v/
dependencies:
zlib.net: ~1.3
libgit2.org: ~1.7
build:
dependencies:
rust-lang.org: '>=1.56'
rust-lang.org/cargo: '*'
script:
- run: sed -i 's/git_version::git_version!(cargo_suffix = "")/"{{version}}"/' main.rs
working-directory: src
- cargo install --locked --path . --root {{prefix}}
test:
- test "$(gitu --version)" = "gitu {{version}}"
- gitu --help