From fe96348dcfc6947da9432a1a066ca4fc9c598bd8 Mon Sep 17 00:00:00 2001 From: Francesco Carmelo Capria Date: Wed, 5 Oct 2022 19:15:16 +0200 Subject: [PATCH] New package: wired-notify-0.10.2 Co-authored-by: classabbyamp <5366828+classabbyamp@users.noreply.github.com> --- srcpkgs/wired-notify/patches/32bit.patch | 11 +++++++++++ srcpkgs/wired-notify/template | 17 +++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 srcpkgs/wired-notify/patches/32bit.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..22075f963681 --- /dev/null +++ b/srcpkgs/wired-notify/patches/32bit.patch @@ -0,0 +1,11 @@ +--- a/src/manager.rs ++++ b/src/manager.rs +@@ -143,7 +143,7 @@ + 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() 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 +}