Blob Blame History Raw
%global tname   La-Capitaine

Name:           la-capitaine-cursor-theme
Version:        3
Release:        5%{?dist}
Summary:        X-cursor theme inspired by macOS and based on KDE Breeze

License:        LGPLv3
URL:            https://github.com/keeferrourke/capitaine-cursors
Source0:        %{url}/archive/r%{version}/%{name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  inkscape
BuildRequires:  xorg-x11-apps
Suggests:       la-capitaine-icon-theme

%description
This is an x-cursor theme inspired by macOS and based on KDE Breeze. The source
files were made in Inkscape, and the theme was designed to pair well with my
icon pack, La Capitaine.


%prep
%autosetup -n capitaine-cursors-r%{version}


%build
./build.sh


%install
mkdir -p                %{buildroot}/%{_datadir}/icons/%{tname}
cp -rfa dist/cursors    %{buildroot}/%{_datadir}/icons/%{tname}/
find %{buildroot} -size 0 -delete


%post
/bin/touch --no-create %{_datadir}/icons/%{tname} &>/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/%{tname} &>/dev/null
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/%{tname} &>/dev/null || :
fi

%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/%{tname} &>/dev/null || :


%files
%license COPYING
%doc README.md
%{_datadir}/icons/%{tname}
%ghost %{_datadir}/icons/%{tname}/icon-theme.cache


%changelog
* Sat Sep 14 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 3-5
- Update to r3
- Packaging fixes

* Wed Mar 15 2017 Laurent Tréguier <laurent@treguier.org> - 2-1
- Initial package