From 86674aa745b96a7b674fd61c9d0e790568a1af59 Mon Sep 17 00:00:00 2001 From: Francesco Carmelo Capria Date: Wed, 5 Oct 2022 19:15:16 +0200 Subject: [PATCH 1/2] New package: wired-notify-0.10.2 Co-authored-by: classabbyamp <5366828+classabbyamp@users.noreply.github.com> --- srcpkgs/wired-notify/patches/32bit.patch | 18 ++++++++++++++++++ .../patches/crossbeam-utils_update.patch | 18 ++++++++++++++++++ srcpkgs/wired-notify/template | 17 +++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 srcpkgs/wired-notify/patches/32bit.patch create mode 100644 srcpkgs/wired-notify/patches/crossbeam-utils_update.patch create mode 100644 srcpkgs/wired-notify/template diff --git a/srcpkgs/wired-notify/patches/32bit.patch b/srcpkgs/wired-notify/patches/32bit.patch new file mode 100644 index 000000000000..3a74ec0ede54 --- /dev/null +++ b/srcpkgs/wired-notify/patches/32bit.patch @@ -0,0 +1,18 @@ +--- a/src/manager.rs ++++ b/src/manager.rs +@@ -143,14 +143,14 @@ + if let Some(threshold) = Config::get().idle_threshold { + match maths_utility::query_screensaver_info(&self.base_window) { + Ok(info) => { +- if info.idle / 1000 >= threshold { ++ if info.idle as u64 / 1000 >= threshold { + self.layout_windows + .values_mut() + .flatten() + .for_each(|w| w.update_mode = UpdateModes::DRAW); + } + }, + Err(e) => eprintln!("{}", e), + } + } + } diff --git a/srcpkgs/wired-notify/patches/crossbeam-utils_update.patch b/srcpkgs/wired-notify/patches/crossbeam-utils_update.patch new file mode 100644 index 000000000000..6b1bb4403a30 --- /dev/null +++ b/srcpkgs/wired-notify/patches/crossbeam-utils_update.patch @@ -0,0 +1,18 @@ +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -319,12 +319,12 @@ dependencies = [ + + [[package]] + name = "crossbeam-utils" +-version = "0.8.5" ++version = "0.8.11" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "d82cfc11ce7f2c3faef78d8a684447b40d503d9681acebed6cb728d45940c4db" ++checksum = "51887d4adc7b564537b15adcfb307936f8075dfcd5f00dde9a9f1d29383682bc" + dependencies = [ + "cfg-if 1.0.0", +- "lazy_static", ++ "once_cell", + ] + + [[package]] diff --git a/srcpkgs/wired-notify/template b/srcpkgs/wired-notify/template new file mode 100644 index 000000000000..1eede5da9e8c --- /dev/null +++ b/srcpkgs/wired-notify/template @@ -0,0 +1,17 @@ +# Template file for 'wired-notify' +pkgname=wired-notify +version=0.10.2 +revision=1 +build_style=cargo +hostmakedepends="pkg-config" +makedepends="pango-devel libXScrnSaver-devel libglib-devel" +short_desc="Lightweight notification daemon written in Rust" +maintainer="Francesco Carmelo Capria " +license="MIT" +homepage="https://github.com/Toqozz/wired-notify" +distfiles="https://github.com/Toqozz/wired-notify/archive/refs/tags/${version}.tar.gz" +checksum=7e1c522451887af67f76ddc3022ef26be918e01c44cec10c09d39cfa04b9785e + +post_install() { + vlicense LICENSE +} From dd0b925e2b01a7e4f48356e078c890b7df4b38da Mon Sep 17 00:00:00 2001 From: Francesco Carmelo Capria Date: Sat, 8 Oct 2022 16:04:13 +0200 Subject: [PATCH 2/2] fix --- srcpkgs/wired-notify/patches/32bit.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/wired-notify/patches/32bit.patch b/srcpkgs/wired-notify/patches/32bit.patch index 3a74ec0ede54..29d32ae10c21 100644 --- a/srcpkgs/wired-notify/patches/32bit.patch +++ b/srcpkgs/wired-notify/patches/32bit.patch @@ -1,6 +1,6 @@ --- a/src/manager.rs +++ b/src/manager.rs -@@ -143,14 +143,14 @@ +@@ -143,6 +143,6 @@ if let Some(threshold) = Config::get().idle_threshold { match maths_utility::query_screensaver_info(&self.base_window) { Ok(info) => { @@ -9,10 +9,10 @@ self.layout_windows .values_mut() .flatten() - .for_each(|w| w.update_mode = UpdateModes::DRAW); + .for_each(|w| w.update_mode = UpdateModes::DRAW); } }, Err(e) => eprintln!("{}", e), } } - } + } \ No newline at end of file