From feb39f34f4106d737e616d1c0af5e6a47fd5cc42 Mon Sep 17 00:00:00 2001 From: Haris Date: Thu, 3 Dec 2026 21:15:48 -0500 Subject: [PATCH] New package: noctalia-5.6.0 --- .../noctalia/patches/basu-introspection.patch | 25 ++++++++++ .../noctalia/patches/ring-progress-test.patch | 20 ++++++++ srcpkgs/noctalia/template | 47 +++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 srcpkgs/noctalia/patches/basu-introspection.patch create mode 100644 srcpkgs/noctalia/patches/ring-progress-test.patch create mode 100644 srcpkgs/noctalia/template diff --git a/srcpkgs/noctalia/patches/basu-introspection.patch b/srcpkgs/noctalia/patches/basu-introspection.patch new file mode 100644 index 00000000000000..a3d5b07b92c408 --- /dev/null +++ b/srcpkgs/noctalia/patches/basu-introspection.patch @@ -0,0 +1,25 @@ +--- a/tests/notification_reply_integration_test.cpp ++++ b/tests/notification_reply_integration_test.cpp +@@ -8,6 +8,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -64,9 +65,11 @@ + client2->enterEventLoopAsync(); + + TEST_CHECK(drainUntil(bus, [&] { return introDone.load(); })); +- TEST_CHECK(introXml.contains(R"()")); +- TEST_CHECK(introXml.contains(R"()")); +- TEST_CHECK(introXml.contains(R"()")); ++ // basu omits argument names in introspection XML. ++ const std::regex replySignal{ ++ R"(\s*\s*\s*)" ++ }; ++ TEST_CHECK(std::regex_search(introXml, replySignal)); + + // Register signal listeners on both clients + std::atomic client1Replied{false}; diff --git a/srcpkgs/noctalia/patches/ring-progress-test.patch b/srcpkgs/noctalia/patches/ring-progress-test.patch new file mode 100644 index 00000000000000..3cb3f46a84fbb8 --- /dev/null +++ b/srcpkgs/noctalia/patches/ring-progress-test.patch @@ -0,0 +1,20 @@ +--- a/tests/ui_tree_reconciler_test.cpp ++++ b/tests/ui_tree_reconciler_test.cpp +@@ -2589,7 +2589,7 @@ + Flex host; + + ui::UiTreeNode tree = makeNode("ring"); +- tree.props.emplace("progress", 0.4); ++ tree.props.emplace("progress", 0.375); + tree.props.emplace("fill", std::string("#ff0000")); + tree.props.emplace("track", std::string("#00ff00")); + tree.props.emplace("thickness", 2.0); +@@ -2601,7 +2601,7 @@ + TEST_CHECK(ring != nullptr && ringNode != nullptr); + TEST_CHECK(ring->width() == 21.0F && ring->height() == 15.0F); + TEST_CHECK(ringNode->width() == 21.0F && ringNode->height() == 15.0F); +- TEST_CHECK(ringNode->style().progress == 0.4F); ++ TEST_CHECK(ringNode->style().progress == 0.375F); + TEST_CHECK(ringNode->style().thickness == 3.0F); + TEST_CHECK(ringNode->style().fill == rgbHex(0xff0000)); + TEST_CHECK(ringNode->style().track == rgbHex(0x00ff00)); diff --git a/srcpkgs/noctalia/template b/srcpkgs/noctalia/template new file mode 100644 index 00000000000000..b653301c7f0242 --- /dev/null +++ b/srcpkgs/noctalia/template @@ -0,0 +1,47 @@ +# Template file for 'noctalia' +pkgname=noctalia +version=5.6.0 +revision=1 +build_style=meson +build_helper=qemu +hostmakedepends="pkg-config wayland-devel" +makedepends="cairo-devel fontconfig-devel freetype-devel harfbuzz-devel json-c++ + libcurl-devel libglib-devel libglvnd-devel libical-devel libjxl-devel + libmd4c-devel libqalculate-devel librsvg-devel libsecret-devel libsndfile-devel + libsodium-devel libwebp-devel libxkbcommon-devel libxml2-devel pam-devel + pango-devel pipewire-devel polkit-devel sdbus-c++-devel stb tomlplusplus-devel + wayland-devel wayland-protocols wireplumber-devel" +depends="git libheif sound-theme-freedesktop virtual?font:sans-serif" +checkdepends="dbus dejavu-fonts-ttf git openssl pipewire python3" +short_desc="Sleek, customizable desktop shell crafted for Wayland" +maintainer="Haris " +license="MIT" +homepage="https://noctalia.dev" +changelog="https://noctalia.dev/changelogs/v${version}" +distfiles="https://github.com/noctalia-dev/noctalia/archive/refs/tags/v${version}.tar.gz" +checksum=c2f0fcc30bae289ecc39ab495ae68120c5882902371cde14f4f08b8bf14210a1 + +if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then + makedepends+=" jemalloc-devel" + configure_args+=" -Djemalloc=enabled" +fi + +if [ "$XBPS_CHECK_PKGS" ]; then + configure_args+=" -Dtests=enabled" +else + configure_args+=" -Dtests=disabled" +fi + +pre_configure() { + vsed -i src/app/git_revision.h.in -e "s/@VCS_TAG@/${version}_${revision}/" +} + +post_install() { + vlicense LICENSE + vsconf example.toml + + for shell in bash fish zsh; do + vtargetrun "${DESTDIR}/usr/bin/noctalia" completions "$shell" > "noctalia.$shell" + vcompletion "noctalia.$shell" "$shell" + done +}