From 3529f13ebf9acd53ce5d2f42c1447b39b10827e0 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 28 Nov 2023 15:05:20 -0500 Subject: [PATCH] +eureka --- projects/crates.io/eureka/package.yml | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 projects/crates.io/eureka/package.yml diff --git a/projects/crates.io/eureka/package.yml b/projects/crates.io/eureka/package.yml new file mode 100644 index 00000000..e17ef4fc --- /dev/null +++ b/projects/crates.io/eureka/package.yml @@ -0,0 +1,31 @@ +distributable: + url: https://github.com/simeg/eureka/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: simeg/eureka + strip: /^v/ + +dependencies: + libgit2.org: ^1 + +build: + dependencies: + rust-lang.org: ^1.65 + rust-lang.org/cargo: '*' + script: cargo install --path . --root {{prefix}} --locked + +provides: + - bin/eureka + +test: + dependencies: + git-scm.org: ^2 + script: + - git init + - mkdir -p $HOME/.config/eureka + - echo "{\"repo\":\"$(pwd)\"}" > $HOME/.config/eureka/config.json + - echo "this is an idea" >README.md + - test "$(eureka --view)" = "this is an idea" + env: + PAGER: cat