New package: wthrr-1.2.1

Co-authored-by: Duncaen <duncaen@voidlinux.org>
This commit is contained in:
dogknowsnx 2025-07-10 09:30:11 +02:00 committed by Duncan Overbruck
parent 59b2ad0e73
commit 7d7ab315fa
2 changed files with 40 additions and 0 deletions

View file

@ -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(())
- }
-}

18
srcpkgs/wthrr/template Normal file
View file

@ -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 <orphan@voidlinux.org>"
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
}