From cdcb46826004497d36cb529c49cb20ea97b36b6f Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 15 Jun 2025 08:59:47 -0700 Subject: [PATCH] add: hypridle (#5378) (#5442) * add: hypridle * builddeps * Update update.rhai * gcc * Update hypridle.spec --------- (cherry picked from commit 25d6e18c696500461514fb778a6e29e1cb8ca4f3) Signed-off-by: madomado Co-authored-by: madomado --- anda/desktops/waylands/hypridle/anda.hcl | 5 +++ anda/desktops/waylands/hypridle/hypridle.spec | 45 +++++++++++++++++++ anda/desktops/waylands/hypridle/update.rhai | 1 + 3 files changed, 51 insertions(+) create mode 100644 anda/desktops/waylands/hypridle/anda.hcl create mode 100644 anda/desktops/waylands/hypridle/hypridle.spec create mode 100644 anda/desktops/waylands/hypridle/update.rhai diff --git a/anda/desktops/waylands/hypridle/anda.hcl b/anda/desktops/waylands/hypridle/anda.hcl new file mode 100644 index 0000000000..40774e84d7 --- /dev/null +++ b/anda/desktops/waylands/hypridle/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "hypridle.spec" + } +} diff --git a/anda/desktops/waylands/hypridle/hypridle.spec b/anda/desktops/waylands/hypridle/hypridle.spec new file mode 100644 index 0000000000..adb485360b --- /dev/null +++ b/anda/desktops/waylands/hypridle/hypridle.spec @@ -0,0 +1,45 @@ +Name: hypridle +Version: 0.1.6 +Release: 1%?dist +Summary: Hyprland's idle daemon +License: BSD-3-Clause +URL: https://github.com/hyprwm/hypridle +Source0: %url/archive/refs/tags/v%version.tar.gz +Packager: madonuko +BuildRequires: cmake gcc gcc-c++ +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-protocols) +BuildRequires: (pkgconfig(hyprland-protocols) with hyprland-protocols.nightly-devel) +BuildRequires: (pkgconfig(hyprlang) with hyprlang.nightly-devel) +BuildRequires: pkgconfig(sdbus-c++) +BuildRequires: (pkgconfig(hyprwayland-scanner) with hyprwayland-scanner.nightly-devel) +BuildRequires: (pkgconfig(hyprutils) with hyprutils.nightly-devel) + +%description +%summary. + +%prep +%autosetup + +%build +%cmake -DCMAKE_BUILD_TYPE:STRING=Release +%cmake_build + +%install +%cmake_install + +%post +%systemd_user_post %name.service + +%preun +%systemd_user_preun %name.service + +%postun +%systemd_user_postun_with_restart %name.service + +%files +%doc README.md +%license LICENSE +%_bindir/hypridle +%_datadir/hypr/hypridle.conf +%_userunitdir/%name.service diff --git a/anda/desktops/waylands/hypridle/update.rhai b/anda/desktops/waylands/hypridle/update.rhai new file mode 100644 index 0000000000..8e2dce705f --- /dev/null +++ b/anda/desktops/waylands/hypridle/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_rawfile("hyprwm/hypridle", "main", "VERSION"));