aboutsummaryrefslogtreecommitdiff
path: root/flat-remix.spec
blob: e508bb9b021e66970667d6d6424db939ce4c41e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Name:           flat-remix
Version: 20210620
Release:        1
License:        GPLv3
Summary:        Flat Remix icon theme
Url:            https://drasite.com/flat-remix
Group:          User Interface/Desktops
Source:         https://github.com/daniruiz/%{name}/archive/%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Flat Remix is an icon theme inspired by material design. It is mostly flat using a colorful palette with some shadows, highlights, and gradients for some depth.

%prep
%setup -q

%install
%make_install

%build

%post
for theme in /usr/share/icons/Flat-Remix*
do
    gtk-update-icon-cache --force /usr/share/icons/${theme} || :
done


%postun
if [ $1 -eq 0 ]; then
    for theme in /usr/share/icons/Flat-Remix*
    do
        gtk-update-icon-cache --force /usr/share/icons/${theme} || :
    done
fi

%files
%license LICENSE
%doc README.md AUTHORS
%{_datadir}/icons/Flat-Remix-*
%ghost %{_datadir}/icons/Flat-Remix-*/icon-theme.cache