pantry/projects/crates.io/sanitize/package.yml
Jacob Heider d3fcbff891 +sanitize
2023-02-05 06:56:28 -05:00

34 lines
621 B
YAML

distributable:
url: https://github.com/jhheider/sanitize/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
provides:
- bin/sanitize
versions:
github: jhheider/sanitize/tags
strip: /v/
build:
dependencies:
rust-lang.org: '>=1.56'
rust-lang.org/cargo: '*'
script:
cargo install --locked --path . --root {{prefix}}
test:
script: |
mkdir -p foo/foo
touch foo/bar foo/bat foo/foo/bat foo/foo/bar
sanitize foo -f $FIXTURE -y
test "$(find foo | sort)" = "$OUT"
env:
OUT: |
foo
foo/bar
foo/foo
foo/foo/bat
fixture: |
/bar
/foo/bat