add: hypridle (#5378) (#5444)

* add: hypridle

* builddeps

* Update update.rhai



* gcc



* Update hypridle.spec



---------


(cherry picked from commit 25d6e18c69)

Signed-off-by: madomado <madonuko@outlook.com>
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-06-15 08:59:40 -07:00
committed by GitHub
parent f5767c8138
commit 2cdd47cf66
3 changed files with 51 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "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 <mado@fyralabs.com>
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
@@ -0,0 +1 @@
rpm.version(gh_rawfile("hyprwm/hypridle", "main", "VERSION"));