%global git_date 20210303 %global git_hash 06c8843 %global git_ver 4 %global rel 1 %global src_name %{alt_name}-%{git_date}-%{git_hash}.tar.xz %global alt_name capitaine-cursors Name: la-capitaine-cursor-theme Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: X-cursor theme inspired by macOS and based on KDE Breeze # Automatically converted from old format: LGPLv3 - review is highly recommended. License: LGPL-3.0-only URL: https://github.com/keeferrourke/capitaine-cursors Source0: %{src_name} BuildArch: noarch BuildRequires: bc BuildRequires: inkscape BuildRequires: xcursorgen 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 %{alt_name} %build ./build.sh --max-dpi xxxhd --type dark ./build.sh --max-dpi xxxhd --type light %install mkdir -p %{buildroot}/%{_datadir}/icons/ cp -rfa dist/dark %{buildroot}/%{_datadir}/icons/%{alt_name} cp -rfa dist/light %{buildroot}/%{_datadir}/icons/%{alt_name}-light find %{buildroot} -size 0 -delete %post /bin/touch --no-create %{_datadir}/icons/%{alt_name}{,-light} &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/%{alt_name}{,-light} &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/%{alt_name}{,-light} &>/dev/null || : fi %posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/%{alt_name}{,-light} &>/dev/null || : %files %license COPYING %doc README.md %{_datadir}/icons/%{alt_name}{,-light} %ghost %{_datadir}/icons/%{alt_name}{,-light}/icon-theme.cache %changelog %autochangelog