mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
90f097fe71
commit
ed57969d9e
1 changed files with 27 additions and 0 deletions
27
projects/crates.io/gitu/package.yml
Normal file
27
projects/crates.io/gitu/package.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
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
|
Loading…
Reference in a new issue