mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
28 lines
579 B
YAML
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
|