From 6b134202fe2bd5129edd40b456ed8546112b25b9 Mon Sep 17 00:00:00 2001 From: John Allen Date: Wed, 18 Jan 2023 08:59:09 -0500 Subject: [PATCH] +xsv --- .../github.com/burntsushi/xsv/package.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 projects/github.com/burntsushi/xsv/package.yml diff --git a/projects/github.com/burntsushi/xsv/package.yml b/projects/github.com/burntsushi/xsv/package.yml new file mode 100644 index 00000000..58c71c54 --- /dev/null +++ b/projects/github.com/burntsushi/xsv/package.yml @@ -0,0 +1,25 @@ +distributable: + url: https://github.com/BurntSushi/xsv/archive/refs/tags/{{ version }}.tar.gz + strip-components: 1 + +versions: + github: BurntSushi/xsv/tags + +provides: + - bin/xsv + +build: + dependencies: + rust-lang.org: ">=1.60" + rust-lang.org/cargo: "*" + script: cargo install --locked --path . --root {{prefix}} + +test: + script: | + out=$(xsv count $FIXTURE) + test "$out" = "2" + + fixture: | + foo,bar + 1,2 + 3,42