mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 01:42:56 +02:00
New package: wthrr-1.2.1
Co-authored-by: Duncaen <duncaen@voidlinux.org>
This commit is contained in:
parent
59b2ad0e73
commit
7d7ab315fa
2 changed files with 40 additions and 0 deletions
22
srcpkgs/wthrr/patches/fix-builds.patch
Normal file
22
srcpkgs/wthrr/patches/fix-builds.patch
Normal 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
18
srcpkgs/wthrr/template
Normal 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
|
||||
}
|
Loading…
Add table
Reference in a new issue