From d432ac7118e7251d66c3b3f6520f0e8ac7823a33 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Sun, 23 Jun 2024 15:56:08 -0400 Subject: [PATCH] +wthrr --- projects/crates.io/wthrr/package.yml | 53 ++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 projects/crates.io/wthrr/package.yml diff --git a/projects/crates.io/wthrr/package.yml b/projects/crates.io/wthrr/package.yml new file mode 100644 index 00000000..639b6c5f --- /dev/null +++ b/projects/crates.io/wthrr/package.yml @@ -0,0 +1,53 @@ +distributable: + url: https://github.com/ttytm/wthrr-the-weathercrab/archive/refs/tags/{{ version.tag }}.tar.gz + strip-components: 1 + +provides: + - bin/wthrr + +versions: + github: ttytm/wthrr-the-weathercrab + +dependencies: + openssl.org: ^1.1 + +build: + dependencies: + rust-lang.org: '>=1.56' + rust-lang.org/cargo: '*' + script: cargo install --locked --path . --root {{prefix}} + +test: + fixture: | + ( + address: "san juan, pr", + language: "en_US", + forecast: [ + week, + ], + units: ( + temperature: celsius, + speed: kmh, + time: military, + precipitation: probability, + ), + gui: ( + border: rounded, + color: default, + graph: ( + style: lines(solid), + rowspan: double, + time_indicator: true, + ), + greeting: true, + ), + ) + script: + - run: cat $FIXTURE > wthrr.ron + working-directory: $WTHRR_HOME + - wthrr 'san juan, pr' + env: + darwin: + WTHRR_HOME: $HOME/Library/Application Support/weathercrab + linux: + WTHRR_HOME: $HOME/.config/weathercrab