From 132af03510bdae57b688b166fbd35f53258a703c Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Wed, 3 Dec 2025 15:24:50 -0500 Subject: [PATCH] Introduced hyprqt6engine package --- .gitea/workflows/build-hyprqt6engine.yml | 33 ++++++++++++++++ hyprqt6engine/cmake.patch | 15 ++++++++ hyprqt6engine/hyprqt6engine.spec | 49 ++++++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 .gitea/workflows/build-hyprqt6engine.yml create mode 100644 hyprqt6engine/cmake.patch create mode 100644 hyprqt6engine/hyprqt6engine.spec diff --git a/.gitea/workflows/build-hyprqt6engine.yml b/.gitea/workflows/build-hyprqt6engine.yml new file mode 100644 index 0000000..c5e1dc9 --- /dev/null +++ b/.gitea/workflows/build-hyprqt6engine.yml @@ -0,0 +1,33 @@ +name: Build hyprqt6engine +on: + push: + branches: + - main + paths: + - .gitea/workflows/build-hyprqt6engine.yml + - "hyprqt6engine/**" + workflow_dispatch: + +jobs: + build_push: + name: Build and push image + runs-on: ubuntu-latest + + steps: + - name: Setup environment + shell: bash + run: | + sudo apt-get update + sudo apt-get install -y podman iptables + + # These stage versions are pinned by https://github.com/renovatebot/renovate + - name: Checkout + uses: actions/checkout@v6 # v5 + + - name: Build RPM and Upload + uses: https://git.hydrosaber.com/hydros/build-rpm@main + with: + spec-file-path: ./hyprqt6engine/hyprqt6engine.spec + repository-user: eriq12 + repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }} + extra-source-directory: ./hyprqt6engine diff --git a/hyprqt6engine/cmake.patch b/hyprqt6engine/cmake.patch new file mode 100644 index 0000000..f84c45a --- /dev/null +++ b/hyprqt6engine/cmake.patch @@ -0,0 +1,15 @@ +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/hyprqt6engine.spec b/hyprqt6engine/hyprqt6engine.spec new file mode 100644 index 0000000..1f1ebac --- /dev/null +++ b/hyprqt6engine/hyprqt6engine.spec @@ -0,0 +1,49 @@ +Name: hyprqt6engine +Version: 0.1.0 +Release: %autorelease -b6 +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: cmake.patch + +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: qt6-rpm-macros + +BuildRequires: pkgconfig(hyprlang) +BuildRequires: pkgconfig(hyprutils) + +BuildRequires: cmake(KF6ColorScheme) +BuildRequires: cmake(KF6Config) +BuildRequires: cmake(KF6IconThemes) +BuildRequires: cmake(Qt6BuildInternals) +BuildRequires: cmake(Qt6Core) +BuildRequires: cmake(Qt6Widgets) +BuildRequires: qt6-qtbase-private-devel + +%description +%{summary}. + +%prep +%autosetup -p1 + +%build +%cmake -DCMAKE_BUILD_TYPE=Release +%cmake_build + +%install +%cmake_install + +%files +%license LICENSE +%doc README.md +%{_libdir}/libhyprqt6engine-common.so +%{_qt6_plugindir}/platformthemes/libhyprqt6engine.so +%{_qt6_plugindir}/styles/libhypr-style.so + +%changelog +%autochangelog