* +gitu

* libgit2
This commit is contained in:
Jacob Heider 2024-03-22 13:22:21 -04:00 committed by GitHub
parent 90f097fe71
commit ed57969d9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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