Introduced hyprqt6engine package
Some checks failed
Build hyprqt6engine / Build and push image (push) Failing after 2m14s
Some checks failed
Build hyprqt6engine / Build and push image (push) Failing after 2m14s
This commit is contained in:
33
.gitea/workflows/build-hyprqt6engine.yml
Normal file
33
.gitea/workflows/build-hyprqt6engine.yml
Normal file
@@ -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
|
||||
15
hyprqt6engine/cmake.patch
Normal file
15
hyprqt6engine/cmake.patch
Normal file
@@ -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)
|
||||
49
hyprqt6engine/hyprqt6engine.spec
Normal file
49
hyprqt6engine/hyprqt6engine.spec
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user