feat(desktop): Modify Steam Deck KDE presets for desktop use

This commit is contained in:
RJ Trujillo 2023-07-18 17:10:21 -06:00
parent acb5cbc7b7
commit 9f9c4ecb5b
2 changed files with 83 additions and 63 deletions

View File

@ -0,0 +1,83 @@
Name: steamdeck-kde-presets-desktop
Version: {{{ git_dir_version }}}
Release: 1%{?dist}
Summary: KDE Presets from Valve's SteamOS 3.0 for desktops
License: GPLv2
URL: https://github.com/ublue-os/bazzite
Source: https://gitlab.com/evlaV/steamdeck-kde-presets/-/archive/master/steamdeck-kde-presets-master.tar.gz
BuildArch: noarch
Requires: kde-filesystem
Conflicts: steamdeck-kde-presets
%description
KDE Presets from Valve's SteamOS 3.0 for desktops
# Disable debug packages
%define debug_package %{nil}
%prep
%setup -n steamdeck-kde-presets-master
%build
%install
mkdir -p %{buildroot}%{_datadir}/
mkdir -p %{buildroot}%{_sysconfdir}/
cp -rv usr/share/* %{buildroot}%{_datadir}
cp -rv etc/* %{buildroot}%{_sysconfdir}
mv %{buildroot}%{_sysconfdir}/skel %{buildroot}%{_sysconfdir}/skel.d
# Remove unneeded files
rm %{buildroot}%{_datadir}/applications/org.mozilla.firefox.desktop
rm %{buildroot}%{_datadir}/kservices5/ServiceMenus/steam.desktop
rm %{buildroot}%{_datadir}/X11/xorg.conf.d/99-pointer.conf
rm %{buildroot}%{_sysconfdir}/profile.d/kde.sh
rm %{buildroot}%{_sysconfdir}/sddm.conf.d/steamdeck.conf
rm %{buildroot}%{_sysconfdir}/skel.d/Desktop/Return.desktop
rm %{buildroot}%{_sysconfdir}/X11/Xsession.d/50rotate-screen
rm %{buildroot}%{_sysconfdir}/xdg/autostart/ibus.desktop
rm %{buildroot}%{_sysconfdir}/xdg/autostart/jupiter-plasma-bootstrap.desktop
rm %{buildroot}%{_sysconfdir}/xdg/autostart/steam.desktop
rm %{buildroot}%{_sysconfdir}/xdg/kcminputrc
rm %{buildroot}%{_sysconfdir}/xdg/kscreenlockerrc
rm %{buildroot}%{_sysconfdir}/xdg/kwinrc
rm %{buildroot}%{_sysconfdir}/xdg/kwinrulesrc
rm %{buildroot}%{_sysconfdir}/xdg/plasma-workspace/env/ibus.sh
rm %{buildroot}%{_sysconfdir}/xdg/powermanagementprofilesrc
# Do post-installation
%post
# Do before uninstallation
%preun
# Do after uninstallation
%postun
# This lists all the files that are included in the rpm package and that
# are going to be installed into target system where the rpm is installed.
%files
%{_datadir}/color-schemes/Vapor.colors
%{_datadir}/color-schemes/VGUI.colors
%{_datadir}/icons/*
%{_datadir}/konsole/*
%{_datadir}/plasma/avatars/*
%{_datadir}/plasma/desktoptheme/*
%{_datadir}/plasma/kickeractions/steam.desktop
%{_datadir}/plasma/look-and-feel/com.valve.vapor.desktop/*
%{_datadir}/plasma/look-and-feel/com.valve.vgui.desktop/*
%{_datadir}/themes/*
%{_datadir}/wallpapers/*
%{_sysconfdir}/xdg/gtk-2.0/gtkrc
%{_sysconfdir}/xdg/gtk-3.0/settings.ini
%{_sysconfdir}/xdg/baloofilerc
%{_sysconfdir}/xdg/kdeglobals
%{_sysconfdir}/xdg/ktrashrc
%{_sysconfdir}/xdg/plasma-nm
# Finally, changes from the latest release of your application are generated from
# your project's Git history. It will be empty until you make first annotated Git tag.
%changelog
{{{ git_dir_changelog }}}

View File

@ -1,63 +0,0 @@
%define packagename steamdeck-kde-presets
Name: steamdeck-kde-themes
Version: {{{ git_dir_version }}}
Release: 1%{?dist}
Summary: KDE Themes from Valve's SteamOS 3.0
License: GPLv2
URL: https://github.com/ublue-os/bazzite
Source: https://gitlab.com/evlaV/%{packagename}/-/archive/master/%{packagename}-master.tar.gz
BuildArch: noarch
Requires: kde-filesystem
Conflicts: steamdeck-kde-presets
%description
KDE Themes from Valve's SteamOS 3.0
# Disable debug packages
%define debug_package %{nil}
%prep
%setup -n %{packagename}-master
%build
%install
mkdir -p %{buildroot}%{_datadir}/
cp -rv usr/share/* %{buildroot}%{_datadir}
# Remove unneeded files
rm %{buildroot}%{_datadir}/applications/org.mozilla.firefox.desktop
rm -rf %{buildroot}%{_datadir}/kservices5
rm -rf %{buildroot}%{_datadir}/X11
rm -rf %{buildroot}%{_datadir}/plasma/kickeractions
# Do post-installation
%post
# Do before uninstallation
%preun
# Do after uninstallation
%postun
# This lists all the files that are included in the rpm package and that
# are going to be installed into target system where the rpm is installed.
%files
%{_datadir}/color-schemes/*
%{_datadir}/icons/*
%{_datadir}/konsole/*
# %%{_datadir}/kservices5/*
%{_datadir}/plasma/avatars/*
%{_datadir}/plasma/desktoptheme/*
%{_datadir}/plasma/look-and-feel/com.valve.vapor.desktop/*
%{_datadir}/plasma/look-and-feel/com.valve.vgui.desktop/*
%{_datadir}/themes/*
%{_datadir}/wallpapers/*
# Finally, changes from the latest release of your application are generated from
# your project's Git history. It will be empty until you make first annotated Git tag.
%changelog
{{{ git_dir_changelog }}}