pantry/projects/github.com/peltoche/lsd/package.yml

27 lines
572 B
YAML
Raw Normal View History

distributable:
url: https://github.com/Peltoche/lsd/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
provides:
- bin/lsd
versions:
github: Peltoche/lsd/tags
2024-03-22 19:32:25 +03:00
dependencies:
libgit2.org: ~1.7
build:
dependencies:
2024-03-22 19:32:25 +03:00
rust-lang.org: '>=1.60'
rust-lang.org/cargo: '*'
2024-03-22 20:21:55 +03:00
script:
# this was missed in 1.1.0
- sed -i 's/^version = "1\.0\.0"$/version = "{{version}}"/' Cargo.toml
- cargo install --path . --root {{prefix}}
2024-03-22 20:21:55 +03:00
test:
- test "$(lsd --version)" = "lsd {{version}}"
- touch testfile
- test "$(lsd --oneline)" = "testfile"