From 78bc302c4456b8b2d7ab22a151e7fdd7c0e6cfbc 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> Co-authored-by: classabbyamp <5366828+classabbyamp@users.noreply.github.com> --- srcpkgs/wired-notify/patches/32bit.patch | 11 +++++++++++ .../patches/crossbeam-utils_update.patch | 18 ++++++++++++++++++ srcpkgs/wired-notify/template | 17 +++++++++++++++++ 3 files changed, 46 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..7a23cf56f68d --- /dev/null +++ b/srcpkgs/wired-notify/patches/32bit.patch @@ -0,0 +1,11 @@ +--- a/src/manager.rs ++++ b/src/manager.rs +@@ -143,6 +143,6 @@ + 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() \ No newline at end of file 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 2bcb17c8a13412db4faf44f76383205aadd35dbb Mon Sep 17 00:00:00 2001 From: Francesco Carmelo Capria Date: Sat, 8 Oct 2022 22:13:37 +0200 Subject: [PATCH 2/2] Newline fix --- srcpkgs/wired-notify/patches/32bit.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/wired-notify/patches/32bit.patch b/srcpkgs/wired-notify/patches/32bit.patch index 7a23cf56f68d..d03cd2254589 100644 --- a/srcpkgs/wired-notify/patches/32bit.patch +++ b/srcpkgs/wired-notify/patches/32bit.patch @@ -8,4 +8,4 @@ + if info.idle as u64 / 1000 >= threshold { self.layout_windows .values_mut() - .flatten() \ No newline at end of file + .flatten()