Introduce hyprland-qt-support package
All checks were successful
Build hyprland-qt-support / Build and push image (push) Successful in 3m16s
All checks were successful
Build hyprland-qt-support / Build and push image (push) Successful in 3m16s
This commit is contained in:
29
hyprland-qt-support/cmake.patch
Normal file
29
hyprland-qt-support/cmake.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index a10b688..3c20875 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,5 +1,11 @@
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
|
||||
+# Get version
|
||||
+file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW)
|
||||
+string(STRIP ${VER_RAW} VER)
|
||||
+
|
||||
+project(hyprland-qt-support VERSION ${VER} LANGUAGES CXX)
|
||||
+
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
@@ -8,12 +14,6 @@ include(cmake/install-qml-module.cmake)
|
||||
|
||||
option(BUILD_TESTER "Build style tester" OFF)
|
||||
|
||||
-# Get version
|
||||
-file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW)
|
||||
-string(STRIP ${VER_RAW} VER)
|
||||
-
|
||||
-project(hyprland-qt-support VERSION ${VER} LANGUAGES CXX)
|
||||
-
|
||||
find_package(Qt6 6.6 REQUIRED COMPONENTS Qml Quick QuickControls2)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
44
hyprland-qt-support/hyprland-qt-support.spec
Normal file
44
hyprland-qt-support/hyprland-qt-support.spec
Normal file
@@ -0,0 +1,44 @@
|
||||
Name: hyprland-qt-support
|
||||
Version: 0.1.0
|
||||
Release: %autorelease -b8
|
||||
Summary: A Qt6 Qml style provider for hypr* apps
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/hyprwm/hyprland-qt-support
|
||||
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: cmake(Qt6Quick)
|
||||
BuildRequires: cmake(Qt6QuickControls2)
|
||||
BuildRequires: cmake(Qt6Qml)
|
||||
|
||||
BuildRequires: pkgconfig(hyprlang)
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%cmake -DINSTALL_QMLDIR=%{_qt6_qmldir}
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_libdir}/libhyprland-quick-style-impl.so
|
||||
%{_libdir}/libhyprland-quick-style.so
|
||||
%{_qt6_qmldir}/org/hyprland/
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Reference in New Issue
Block a user