File plasma6-theme-apus.spec of Package plasma6-theme-apus
%global kf6_version 6.0.0
%define qt6_version 6.6.0
# Full Plasma 6 version (e.g. 6.0.0)
%{!?_plasma6_bugfix: %define _plasma6_bugfix 6.0.0}
# Latest ABI-stable Plasma (e.g. 6.0 in KF6, but 6.0.80 in KUF)
%{!?_plasma6_version: %define _plasma6_version %(echo %{_plasma6_bugfix} | awk -F. '{print $1"."$2}')}
Name: plasma6-theme-apus
Version: 0.0
Release: 0
Summary: Highly customizable theming for the KDE Plasma desktop
License: GPL-2.0-or-later
Group: System/GUI/KDE
Url: https://gitlab.com/jomada/ApuS
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake >= 3.16
BuildRequires: fdupes
BuildRequires: gettext
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
BuildRequires: plasma6-framework >= %{_plasma6_bugfix}
BuildRequires: kf6-filesystem
%description
Highly customizable theming for the KDE Plasma desktop.
Install, and enable in System Settings -> Appearance -> Global Themes (or individually in Window Decorations, Application Style and Icons).
%prep
%autosetup -p1 -n %{name}-%{version}
%build
# Nothing to do here...
%install
THEME_NAME=Apus
mkdir -p %{buildroot}/%{_datadir}/aurorae/themes
mkdir -p %{buildroot}/%{_datadir}/color-schemes
mkdir -p %{buildroot}/%{_datadir}/plasma/look-and-feel
mkdir -p %{buildroot}/%{_datadir}/konsole
mkdir -p %{buildroot}/%{_datadir}/plasma/desktoptheme
mkdir -p %{buildroot}/%{_datadir}/wallpaper
cp -rf aurorae/${THEME_NAME}/ %{buildroot}/%{_datadir}/aurorae/themes/
cp -rf color-schemes/*.colors %{buildroot}/%{_datadir}/color-schemes/
cp -rf global/${THEME_NAME}/ %{buildroot}/%{_datadir}/plasma/look-and-feel/
cp -rf konsole/* %{buildroot}/%{_datadir}/konsole/
cp -rf ${THEME_NAME}/ %{buildroot}/%{_datadir}/plasma/desktoptheme/
cp -rf wallpaper/* %{buildroot}/%{_datadir}/wallpaper/
%files
%dir %{_datadir}/color-schemes
%dir %{_datadir}/plasma/look-and-feel
%dir %{_datadir}/aurorae
%dir %{_datadir}/aurorae/themes/
%dir %{_datadir}/plasma/look-and-feel/
%dir %{_datadir}/konsole
%dir %{_datadir}/wallpaper
%{_datadir}/plasma/desktoptheme/Apus/
%{_datadir}/plasma/look-and-feel/Apus/
%{_datadir}/color-schemes/*.colors
%{_datadir}/aurorae/themes/*
%{_datadir}/konsole/*.colorscheme
%{_datadir}/wallpaper/*.png
%dir %{_datadir}/wallpaper/ApusColors
%dir %{_datadir}/wallpaper/girl_with_headphones
%{_datadir}/wallpaper/*/*
%changelog