From f94d8ade53a7e15deb6d77de679ec08d6829f40a Mon Sep 17 00:00:00 2001 From: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com> Date: Fri, 5 Apr 2024 07:49:13 +0000 Subject: [PATCH 1/5] Create lightly-qt5. spec Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com> --- anda/themes/lightly-qt5. spec | 103 ++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 anda/themes/lightly-qt5. spec diff --git a/anda/themes/lightly-qt5. spec b/anda/themes/lightly-qt5. spec new file mode 100644 index 0000000000..b7669805ea --- /dev/null +++ b/anda/themes/lightly-qt5. spec @@ -0,0 +1,103 @@ +%global style Lightly +%global _style lightly +%global dev boehs +%global _qt_major_version 5 + +%global forgeurl https://github.com/%{dev}/%{style} +%global commit be5adc66bf3c7fe5038a42ba4dd6d5aed7544a46 +%global date 20240217 + +%forgemeta + +Name: %{_style}-qt%{_qt_major_version} +Version: 0.43 +Release: %autorelease +Summary: A modern style for qt applications +License: GPL-2.0-or-later +Group: System/GUI/KDE + +URL: %{forgeurl} +Source: %{forgesource} + + +BuildRequires: gcc-c++ +BuildRequires: cmake >= 3.0 +BuildRequires: extra-cmake-modules >= 5.78.0 + +BuildRequires: kf%{_qt_major_version}-rpm-macros +BuildRequires: kf%{_qt_major_version}-filesystem + +BuildRequires: cmake(Qt%{_qt_major_version}Core) +BuildRequires: cmake(Qt%{_qt_major_version}DBus) +BuildRequires: cmake(Qt%{_qt_major_version}Gui) +BuildRequires: cmake(Qt%{_qt_major_version}Quick) +BuildRequires: cmake(Qt%{_qt_major_version}UiTools) +BuildRequires: cmake(Qt%{_qt_major_version}Widgets) +BuildRequires: cmake(Qt%{_qt_major_version}X11Extras) + +BuildRequires: cmake(KF%{_qt_major_version}CoreAddons) +BuildRequires: cmake(KF%{_qt_major_version}Config) +BuildRequires: cmake(KF%{_qt_major_version}ConfigWidgets) +BuildRequires: cmake(KF%{_qt_major_version}Crash) +BuildRequires: cmake(KF%{_qt_major_version}FrameworkIntegration) +BuildRequires: cmake(KF%{_qt_major_version}GuiAddons) +BuildRequires: cmake(KF%{_qt_major_version}GlobalAccel) +BuildRequires: cmake(KF%{_qt_major_version}I18n) +BuildRequires: cmake(KF%{_qt_major_version}IconThemes) +BuildRequires: cmake(KF%{_qt_major_version}Init) +BuildRequires: cmake(KF%{_qt_major_version}KCMUtils) +BuildRequires: cmake(KF%{_qt_major_version}KIO) +BuildRequires: cmake(KF%{_qt_major_version}Kirigami2) +BuildRequires: cmake(KF%{_qt_major_version}Notifications) +BuildRequires: cmake(KF%{_qt_major_version}Package) +BuildRequires: cmake(KF%{_qt_major_version}Plasma) +BuildRequires: cmake(KF%{_qt_major_version}Wayland) +BuildRequires: cmake(KF%{_qt_major_version}WindowSystem) +BuildRequires: cmake(KDecoration2) + +BuildRequires: pkgconfig(x11-xcb) +BuildRequires: pkgconfig(xcb) + +BuildRequires: kwin-devel +BuildRequires: libepoxy-devel +BuildRequires: kf%{_qt_major_version}-kpackage-devel + +Obsoletes: %{_style} <= %{version} + +%description +%{style} is a fork of breeze theme style that aims to be visually modern and minimalistic. + +%prep +%forgeautosetup -p1 + +%build +%cmake_kf5 -DQT_MAJOR_VERSION=%{_qt_major_version} -DWITH_DECORATIONS=OFF +%cmake_build + +%install +%cmake_install + +# Remove files present in lightly-qt6 +rm -rf %{buildroot}%{_datadir}/color-schemes +rm -rf %{buildroot}%{_datadir}/icons +rm -rf %{buildroot}%{_datadir}/kstyle +rm -rf %{buildroot}%{_libdir}/cmake/%{style} + +%files +%license COPYING +%doc AUTHORS README.md + +%{_bindir}/lightly-settings%{_qt_major_version} + +%{_libdir}/kconf_update_bin/kde4%{_style} +%{_libdir}/lib%{_style}common%{_qt_major_version}.so.* + +%{_qt5_plugindir}/kstyle_%{_style}_config.so +%{_qt5_plugindir}/styles/%{_style}.so + +%{_datadir}/kconf_update/kde4%{_style}.upd +%{_datadir}/kservices%{_qt_major_version}/%{_style}styleconfig.desktop + +%changelog +%autochangelog +%autochangelog From e2de3eb6dc2b9580813fae35e77eb20511216687 Mon Sep 17 00:00:00 2001 From: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com> Date: Fri, 5 Apr 2024 07:53:42 +0000 Subject: [PATCH 2/5] Fix filename & location of lightly-qt5 Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com> --- anda/themes/{lightly-qt5. spec => lightly-qt5/lightly-qt5.spec} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename anda/themes/{lightly-qt5. spec => lightly-qt5/lightly-qt5.spec} (100%) diff --git a/anda/themes/lightly-qt5. spec b/anda/themes/lightly-qt5/lightly-qt5.spec similarity index 100% rename from anda/themes/lightly-qt5. spec rename to anda/themes/lightly-qt5/lightly-qt5.spec From 9bf1785a7f183bbdc124cae93dc9ec0152f20fee Mon Sep 17 00:00:00 2001 From: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com> Date: Fri, 5 Apr 2024 07:56:11 +0000 Subject: [PATCH 3/5] Create anda.hcl for lightly-qt5 Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com> --- anda/themes/lightly-qt5/anda.hcl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 anda/themes/lightly-qt5/anda.hcl diff --git a/anda/themes/lightly-qt5/anda.hcl b/anda/themes/lightly-qt5/anda.hcl new file mode 100644 index 0000000000..9527c9c5df --- /dev/null +++ b/anda/themes/lightly-qt5/anda.hcl @@ -0,0 +1,6 @@ +project "pkg" { + arches = ["x86_64", "aarch64"] + rpm { + spec = "lightly-qt5.spec" + } +} From 4ad0ab98ca2694c5b4164f6f9bf92f9d36faa581 Mon Sep 17 00:00:00 2001 From: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:51:27 +0000 Subject: [PATCH 4/5] Create update.rhai Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com> --- anda/themes/lightly-qt5/update.rhai | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 anda/themes/lightly-qt5/update.rhai diff --git a/anda/themes/lightly-qt5/update.rhai b/anda/themes/lightly-qt5/update.rhai new file mode 100644 index 0000000000..4b04183e7c --- /dev/null +++ b/anda/themes/lightly-qt5/update.rhai @@ -0,0 +1,7 @@ +let repos = get("https://repology.org/api/v1/project/qt").json_arr(); +let branch = sh("git rev-parse --abbrev-ref HEAD", #{"stdout": "piped"}).ctx.stdout; +branch.crop(1); +branch.trim(); +let vers = repos.filter(|r| r.repo == `fedora_${branch}`).map(|r| [find("^(\\d+)\\.(\\d+)\\..+$", r.version, 1), find("^(\\d+)\\.(\\d+)\\..+$", r.version, 2)]); +let ver = vers.find(|v| v[0] == "5")[1]; // assume there is only 1 package for v5.x +open_file("anda/themes/lightly-qt5/VER5.txt").write(`${ver}`); // will trig rebuild when changed From 64ef3ec49aabb915c8fbe80d03560a883433c67b Mon Sep 17 00:00:00 2001 From: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:53:22 +0000 Subject: [PATCH 5/5] Create VER5.txt Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com> --- anda/themes/lightly-qt5/VER5.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 anda/themes/lightly-qt5/VER5.txt diff --git a/anda/themes/lightly-qt5/VER5.txt b/anda/themes/lightly-qt5/VER5.txt new file mode 100644 index 0000000000..60d3b2f4a4 --- /dev/null +++ b/anda/themes/lightly-qt5/VER5.txt @@ -0,0 +1 @@ +15