From 098201a3c7b6e91d12117529e70d7e2735fc22a7 Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Wed, 3 Dec 2025 16:04:37 -0500 Subject: [PATCH] Return patch, add ending new line to patch --- .gitea/workflows/build-hyprqt6engine.yml | 5 +++-- hyprqt6engine/fix-build.diff | 16 ++++++++++++++++ .../hyprqt6engine.spec | 1 + 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 hyprqt6engine/fix-build.diff rename hyprqt6engine.spec => hyprqt6engine/hyprqt6engine.spec (97%) diff --git a/.gitea/workflows/build-hyprqt6engine.yml b/.gitea/workflows/build-hyprqt6engine.yml index ec49b2e..c5e1dc9 100644 --- a/.gitea/workflows/build-hyprqt6engine.yml +++ b/.gitea/workflows/build-hyprqt6engine.yml @@ -5,7 +5,7 @@ on: - main paths: - .gitea/workflows/build-hyprqt6engine.yml - - "hyprqt6engine.spec" + - "hyprqt6engine/**" workflow_dispatch: jobs: @@ -27,6 +27,7 @@ jobs: - name: Build RPM and Upload uses: https://git.hydrosaber.com/hydros/build-rpm@main with: - spec-file-path: ./hyprqt6engine.spec + spec-file-path: ./hyprqt6engine/hyprqt6engine.spec repository-user: eriq12 repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }} + extra-source-directory: ./hyprqt6engine diff --git a/hyprqt6engine/fix-build.diff b/hyprqt6engine/fix-build.diff new file mode 100644 index 0000000..7592e3b --- /dev/null +++ b/hyprqt6engine/fix-build.diff @@ -0,0 +1,16 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 94ecfef..19e9380 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -14,6 +14,10 @@ find_package(KF6Config) + find_package(KF6ColorScheme) + find_package(KF6IconThemes) + ++if (Qt6Gui_VERSION VERSION_GREATER_EQUAL "6.9.0") ++ find_package(Qt6GuiPrivate ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE) ++endif() ++ + get_target_property(QT_QTPATHS_EXECUTABLE Qt6::qtpaths IMPORTED_LOCATION) + + if(NOT PLUGINDIR) + \ No newline at end of file diff --git a/hyprqt6engine.spec b/hyprqt6engine/hyprqt6engine.spec similarity index 97% rename from hyprqt6engine.spec rename to hyprqt6engine/hyprqt6engine.spec index 2af5bee..6664877 100644 --- a/hyprqt6engine.spec +++ b/hyprqt6engine/hyprqt6engine.spec @@ -5,6 +5,7 @@ Summary: Qt6 Theme Provider for Hyprland License: BSD-3-Clause URL: https://github.com/hyprwm/hyprqt6engine Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +Patch: fix-build.diff # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86}