add: noctalia-git (#12902) (#12988)

This commit is contained in:
Raboneko
2026-06-08 14:48:37 -05:00
committed by GitHub
parent 9380bf4ac2
commit c9931d70dc
3 changed files with 103 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
project pkg {
rpm {
spec = "noctalia-git.spec"
}
labels {
nightly = 1
}
}
@@ -0,0 +1,89 @@
%global debug_package %{nil}
%global ver 5.0.0
%global commit af17dadff2a721a0ba0276eb35303e22a972ab2f
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commitdate 20260608
Name: noctalia-git
Version: %{ver}^%{commitdate}git.%{shortcommit}
Release: 1%{?dist}
Summary: A lightweight Wayland shell and bar built directly on Wayland + OpenGL ES, with no Qt or GTK dependency
License: MIT
URL: https://github.com/noctalia-dev/noctalia
Source0: https://github.com/noctalia-dev/noctalia/archive/%{commit}/noctalia-%{commit}.tar.gz
BuildRequires: meson
BuildRequires: gcc-c++
BuildRequires: git
BuildRequires: pipewire-devel
BuildRequires: sdbus-cpp-devel
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(jemalloc)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libqalculate)
BuildRequires: pkgconfig(librsvg-2.0)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(pam)
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(polkit-gobject-1)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-protocols)
BuildRequires: pkgconfig(xkbcommon)
Provides: desktop-notification-daemon
Provides: PolicyKit-authentication-agent
Requires: hicolor-icon-theme
Requires: dejavu-sans-fonts
Requires: libwebp
Recommends: ddcutil
Recommends: gpu-screen-recorder
Recommends: power-profiles-daemon
Packager: Cypress Reed <cypress@fyralabs.com>
%description
A lightweight Wayland shell and bar built directly on Wayland + OpenGL ES, with no Qt or GTK dependency.
%prep
%autosetup -n noctalia-%{commit}
# Manually insert commit hash
sed -i "s/'unknown'/'%{shortcommit}'/g" meson.build
%conf
%meson
%build
%meson_build
%install
%meson_install
install -d %{buildroot}%{_licensedir}/%{name}/third_party
find third_party -type f \( -name "LICENSE*" -o -name "COPYING*" -o -name "NOTICE*" \) | while read -r file; do
# Create the destination subdirectory
dest_dir="%{buildroot}%{_licensedir}/%{name}/$(dirname "$file")"
install -d "$dest_dir"
# Copy the file to its specific subfolder
install -p -m 0644 "$file" "$dest_dir/"
done
%files
%doc README.md
%license LICENSE
%{_licensedir}/%{name}/third_party/
%{_bindir}/noctalia
%{_datadir}/noctalia/
%changelog
* Fri Jun 05 2026 Cypress Reed <cypress@fyralabs.com>
- Port to terra from Fedora COPR lionheartp/Hyprland
+6
View File
@@ -0,0 +1,6 @@
rpm.global("commit", get("https://api.github.com/repos/noctalia-dev/noctalia/commits/main").json().sha);
if rpm.changed() {
rpm.global("ver", gh("noctalia-dev/noctalia"));
rpm.global("commit_date", date());
rpm.release();
}