pantry/projects/crates.io/zoxide/package.yml

24 lines
414 B
YAML
Raw Normal View History

2023-01-17 10:59:37 +03:00
distributable:
url: https://github.com/ajeetdsouza/zoxide/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
provides:
- bin/zoxide
versions:
github: ajeetdsouza/zoxide
strip: /v/
build:
dependencies:
rust-lang.org/cargo: '*'
script:
cargo install --locked --path . --root {{prefix}}
2023-05-08 17:36:37 +03:00
test: |
eval "$(zoxide init bash)"
mkdir foo
cd foo
cd ..
z foo
pwd | grep -E '/foo$'