From 9377da321b5ece719eabbec7a7fa01b104fb0887 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 14 Jun 2025 03:29:58 -0700 Subject: [PATCH] add: hyprland-protocols.nightly (#5384) (#5389) (cherry picked from commit f1976761626fb752565e64b22e44b40bb5f15c5a) Co-authored-by: madomado --- .../waylands/hyprland-protocols/anda.hcl | 10 ++++ .../hyprland-protocols.nightly.spec | 53 +++++++++++++++++++ .../waylands/hyprland-protocols/update.rhai | 5 ++ 3 files changed, 68 insertions(+) create mode 100644 anda/desktops/waylands/hyprland-protocols/anda.hcl create mode 100644 anda/desktops/waylands/hyprland-protocols/hyprland-protocols.nightly.spec create mode 100644 anda/desktops/waylands/hyprland-protocols/update.rhai diff --git a/anda/desktops/waylands/hyprland-protocols/anda.hcl b/anda/desktops/waylands/hyprland-protocols/anda.hcl new file mode 100644 index 0000000000..9c18ee2a54 --- /dev/null +++ b/anda/desktops/waylands/hyprland-protocols/anda.hcl @@ -0,0 +1,10 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "hyprland-protocols.nightly.spec" + } + labels { + nightly = 1 + subrepo = "extras" + } +} diff --git a/anda/desktops/waylands/hyprland-protocols/hyprland-protocols.nightly.spec b/anda/desktops/waylands/hyprland-protocols/hyprland-protocols.nightly.spec new file mode 100644 index 0000000000..d142180c7a --- /dev/null +++ b/anda/desktops/waylands/hyprland-protocols/hyprland-protocols.nightly.spec @@ -0,0 +1,53 @@ +#? https://src.fedoraproject.org/rpms/hyprland-protocols/blob/rawhide/f/hyprland-protocols.spec + +%global realname hyprland-protocols +%global ver 0.6.4 +%global commit 613878cb6f459c5e323aaafe1e6f388ac8a36330 +%global commit_date 20250604 +%global shortcommit %{sub %commit 1 7} + +Name: %realname.nightly +Version: %ver^%{commit_date}git.%shortcommit +Release: 1%?dist +Summary: Wayland protocol extensions for Hyprland +BuildArch: noarch + +License: BSD-3-Clause +URL: https://github.com/hyprwm/hyprland-protocols +Source0: %url/archive/%commit.tar.gz + +BuildRequires: meson +Packager: madonuko +Provides: %realname = %evr +Conflicts: %realname + +%description +%{summary}. + +%package devel +Summary: Wayland protocol extensions for Hyprland +Provides: %realname-devel = %evr +Conflicts: %realname-devel + +%description devel +%{summary}. + + +%prep +%autosetup -p1 -n %realname-%commit + + +%build +%meson +%meson_build + + +%install +%meson_install + + +%files devel +%license LICENSE +%doc README.md +%{_datadir}/pkgconfig/%{realname}.pc +%{_datadir}/%{realname}/ diff --git a/anda/desktops/waylands/hyprland-protocols/update.rhai b/anda/desktops/waylands/hyprland-protocols/update.rhai new file mode 100644 index 0000000000..c198b9f394 --- /dev/null +++ b/anda/desktops/waylands/hyprland-protocols/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("hyprwm/hyprlang-protocols")); +if rpm.changed() { + rpm.global("ver", gh_rawfile("hyprwm/hyprlang-protocols", "main", "VERSION")); + rpm.global("commit_date", date()); +}