diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6cc13e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/la-capitaine-cursor-theme-3.tar.gz diff --git a/la-capitaine-cursor-theme.spec b/la-capitaine-cursor-theme.spec new file mode 100644 index 0000000..350f028 --- /dev/null +++ b/la-capitaine-cursor-theme.spec @@ -0,0 +1,63 @@ +%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 - 3-5 +- Update to r3 +- Packaging fixes + +* Wed Mar 15 2017 Laurent Tréguier - 2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..22ca077 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (la-capitaine-cursor-theme-3.tar.gz) = 482347f1358cdefd7f4f30057da9c2116b4a1a56ce0f40339fb8461770c709963bb5c57ee16b9b927f39089f553a268e34709dbf5edc5c839f508c48dd57e2d7