From 3a328f828135aa85273559b1b901ab28eeacf069 Mon Sep 17 00:00:00 2001 From: Jonathan Chang Date: Thu, 1 Dec 2022 20:04:58 -0800 Subject: [PATCH] +crates.io/ripgrep --- projects/crates.io/ripgrep/package.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 projects/crates.io/ripgrep/package.yml diff --git a/projects/crates.io/ripgrep/package.yml b/projects/crates.io/ripgrep/package.yml new file mode 100644 index 00000000..e6feb1fb --- /dev/null +++ b/projects/crates.io/ripgrep/package.yml @@ -0,0 +1,22 @@ +distributable: + url: https://github.com/BurntSushi/ripgrep/archive/refs/tags/{{version}}.tar.gz + strip-components: 1 + +provides: + - bin/rg + +versions: + github: BurntSushi/ripgrep/tags + +build: + dependencies: + rust-lang.org: '>=1.34' + rust-lang.org/cargo: '*' + script: + cargo install --locked --path . --root {{prefix}} + +test: + script: | + rg hello $FIXTURE + fixture: | + hello, world