%global commit0 462458b1 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global date 20240101 Name: everforest-gtk-theme Version: 0.0.1 Release: 1.%{date}git%{shortcommit0}%{?dist} Summary: Everforest colour palette for GTK License: GPL-3.0-or-later URL: https://github.com/Fausto-Korpsvart/Everforest-GTK-Theme Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz BuildArch: noarch Requires: gtk-murrine-engine BuildRequires: git BuildRequires: sassc %description Everforest colour palette for GTK themes and icons. %package -n everforest-icon-theme Summary: Everforest icon theme Requires: hicolor-icon-theme %description -n everforest-icon-theme Everforest icon theme with dark and light variants. %prep %autosetup -n Everforest-GTK-Theme-%{commit0} %build cd themes ./build.sh %install # Install icon themes sed -i icons/*/index.theme -e 's/oomox-//' sed -i icons/Everforest-Light/index.theme -e 's/[Ee]verforest_[Ll]ight/Everforest-Light/g' mkdir -p %{buildroot}%{_datadir}/icons cp -r icons/Everforest-Dark %{buildroot}%{_datadir}/icons/ cp -r icons/Everforest-Light %{buildroot}%{_datadir}/icons/ # Install GTK themes cd themes mkdir -p %{buildroot}%{_datadir}/themes ./install.sh --dest %{buildroot}%{_datadir}/themes --theme all %files %license LICENSE %doc README.md %{_datadir}/themes/Everforest-* %files -n everforest-icon-theme %license LICENSE %{_datadir}/icons/Everforest-Dark/ %{_datadir}/icons/Everforest-Light/ %changelog * Tue Dec 16 2025 Rain Xelelo - 0.0.1-1.20240101git462458b - Initial package