mirror of
https://github.com/ivabus/pantry
synced 2024-12-01 20:45:10 +03:00
ed57969d9e
* +gitu * libgit2
27 lines
579 B
YAML
27 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
|