From 0c4ca305fc0a9b36aec033cfa2983d09c2d523d4 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Thu, 23 May 2024 22:55:04 -0400 Subject: [PATCH] +get-blessed --- projects/crates.io/get-blessed/package.yml | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 projects/crates.io/get-blessed/package.yml diff --git a/projects/crates.io/get-blessed/package.yml b/projects/crates.io/get-blessed/package.yml new file mode 100644 index 00000000..9ddd9a8b --- /dev/null +++ b/projects/crates.io/get-blessed/package.yml @@ -0,0 +1,31 @@ +distributable: + url: https://github.com/josueBarretogit/get_blessed_rs/archive/refs/tags/{{ version.tag }}.tar.gz + strip-components: 1 + +provides: + - bin/get-blessed + +versions: + github: josueBarretogit/get_blessed_rs + +dependencies: + linux: + openssl.org: '*' + +build: + dependencies: + rust-lang.org: '>=1.56' + rust-lang.org/cargo: '*' + script: + # no features that don't run the TUI; add a --version flag for testing + - run: | + sed -i '/fn main()/a\ + if std::env::args().nth(1) == Some("--version".to_string()) {\ + println!("get-blessed v{{ version }}");\ + return Ok(());\ + }\ + ' main.rs + working-directory: src + - cargo install --locked --path . --root {{prefix}} + +test: test "$(get-blessed --version)" = "get-blessed v{{ version }}"