From 7d7ab315fae642839eb9519eacf1a8a8a58879c9 Mon Sep 17 00:00:00 2001 From: dogknowsnx Date: Thu, 10 Jul 2025 09:30:11 +0200 Subject: [PATCH] New package: wthrr-1.2.1 Co-authored-by: Duncaen --- srcpkgs/wthrr/patches/fix-builds.patch | 22 ++++++++++++++++++++++ srcpkgs/wthrr/template | 18 ++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 srcpkgs/wthrr/patches/fix-builds.patch create mode 100644 srcpkgs/wthrr/template diff --git a/srcpkgs/wthrr/patches/fix-builds.patch b/srcpkgs/wthrr/patches/fix-builds.patch new file mode 100644 index 00000000000..a1d2311b2d7 --- /dev/null +++ b/srcpkgs/wthrr/patches/fix-builds.patch @@ -0,0 +1,22 @@ +--- a/src/modules/localization.rs ++++ b/src/modules/localization.rs +@@ -265,19 +265,3 @@ impl Locales { + Ok(date) + } + } +- +-#[cfg(test)] +-mod tests { +- use super::*; +- +- #[tokio::test] +- async fn translate_string() -> Result<()> { +- let (target_lang, input) = ("de_DE", "tongue-twister"); +- +- let res = Locales::translate_str(target_lang, input).await?; +- +- assert!(res.contains("Zungenbrecher")); +- +- Ok(()) +- } +-} diff --git a/srcpkgs/wthrr/template b/srcpkgs/wthrr/template new file mode 100644 index 00000000000..031a035aee4 --- /dev/null +++ b/srcpkgs/wthrr/template @@ -0,0 +1,18 @@ +# Template file for 'wthrr' +pkgname=wthrr +version=1.2.1 +revision=1 +build_style=cargo +hostmakedepends="pkg-config" +makedepends="openssl-devel" +short_desc="Weather companion for the terminal" +maintainer="Orphaned " +license="MIT" +homepage="https://github.com/ttytm/wthrr-the-weathercrab" +changelog="https://github.com/ttytm/wthrr-the-weathercrab/releases" +distfiles="https://github.com/ttytm/wthrr-the-weathercrab/archive/refs/tags/v${version}.tar.gz" +checksum=ff5b47f2046ebefa9ff28cb52ece49a06f7b89230578801c338c77802aa721e0 + +post_install() { + vlicense LICENSE +}