From 7065cf67fe1a39c39d08925480b6e166b1d7f2dc Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 15 Jun 2025 08:13:34 -0700 Subject: [PATCH] add: hyprlang.nightly (#5371) (#5432) (cherry picked from commit a72018574068ce96ebb18011e4a0df60df07879a) Co-authored-by: madomado --- anda/desktops/waylands/hyprlang/anda.hcl | 9 +++ .../waylands/hyprlang/hyprlang.nightly.spec | 57 +++++++++++++++++++ anda/desktops/waylands/hyprlang/update.rhai | 5 ++ 3 files changed, 71 insertions(+) create mode 100644 anda/desktops/waylands/hyprlang/anda.hcl create mode 100644 anda/desktops/waylands/hyprlang/hyprlang.nightly.spec create mode 100644 anda/desktops/waylands/hyprlang/update.rhai diff --git a/anda/desktops/waylands/hyprlang/anda.hcl b/anda/desktops/waylands/hyprlang/anda.hcl new file mode 100644 index 0000000000..155ff3d3dd --- /dev/null +++ b/anda/desktops/waylands/hyprlang/anda.hcl @@ -0,0 +1,9 @@ +project pkg { + rpm { + spec = "hyprlang.nightly.spec" + } + labels { + nightly = 1 + subrepo = "extras" + } +} diff --git a/anda/desktops/waylands/hyprlang/hyprlang.nightly.spec b/anda/desktops/waylands/hyprlang/hyprlang.nightly.spec new file mode 100644 index 0000000000..a3f4eaf85e --- /dev/null +++ b/anda/desktops/waylands/hyprlang/hyprlang.nightly.spec @@ -0,0 +1,57 @@ +#? https://src.fedoraproject.org/rpms/hyprlang/blob/rawhide/f/hyprlang.spec + +%global realname hyprlang +%global ver 0.6.3 +%global commit 1bfb84f54d50c7ae6558c794d3cfd5f6a7e6e676 +%global commit_date 20250606 +%global shortcommit %{sub %commit 1 7} + +Name: %realname.nightly +Version: %ver^%{commit_date}git.%shortcommit +Release: 1%?dist +Summary: The official implementation library for the hypr config language + +License: LGPL-3.0-only +URL: https://github.com/hyprwm/hyprlang +Source0: %url/archive/%commit.tar.gz + +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: (pkgconfig(hyprutils) with hyprutils.nightly-devel) + +Provides: %realname = %evr +Conflicts: %realname + +%description +%{summary}. + +%package devel +Requires: %{name}%{?_isa} = %{version}-%{release} +Provides: %realname-devel = %evr +Conflicts: %realname-devel +%pkg_devel_files + +%prep +%autosetup -p1 -n %realname-%commit + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%check +%ctest + +%files +%license LICENSE +%doc README.md +%{_libdir}/libhyprlang.so.2 +%{_libdir}/libhyprlang.so.%{ver} + +%changelog +%autochangelog diff --git a/anda/desktops/waylands/hyprlang/update.rhai b/anda/desktops/waylands/hyprlang/update.rhai new file mode 100644 index 0000000000..bc8ee477cb --- /dev/null +++ b/anda/desktops/waylands/hyprlang/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("hyprwm/hyprlang")); +if rpm.changed() { + rpm.global("ver", gh_rawfile("hyprwm/hyprlang", "main", "VERSION")); + rpm.global("commit_date", date()); +}