File 归一化.sh of Package oreo-cursors
#!/usr/bin/zsh
for i (${(f)"$(<oreo-cursors/cursors.conf)"}) {
type=`echo $i |awk '{print $1}'`
[[ $type != '#' ]]&&[[ $type != 'sizes' ]]&&{
str="$str\n%files -n oreo_$type \n%{_datadir}/icons/oreo_${type}_cursors"
string="$string\nRequires:oreo_$type"
aks="$aks\n%package -n oreo_$type
Summary: ${type} Color material cursors
%description -n oreo_${type}
Color material cursors for your Linux desktop with cute animation"
}
}
spec="#
# spec file for package oreo-cursors
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An \"Open Source License\" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: oreo-cursors
Version: 0.0.0git
Release: 0
Summary: Color material cursors for your Linux desktop with cute animation
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: GPL-2.0-or-later
URL: https://github.com/varlesh/oreo-cursors
Source: _service
BuildRequires: fdupes ruby(abi) xcursorgen
BuildRequires: ruby
BuildRequires: breeze6-devel
BuildArch: noarch$string
%description
Color material cursors for your Linux desktop with cute animation.
Cursors have sizes 32px & 64px (HiDPI)
Available versions:
- Original cursors by Varlesh
- Spark cursors: Custom colours by Sourav$aks
%package doc
Summary: oreo-cursors-readme-authors
%description doc
oreo-cursors-readme-authors
%prep
%setup -q -n %_sourcedir/%name-%version -T -D
%__mkdir -p %_builddir/%_sourcedir
%__ln -rs %_sourcedir/%name-%version %_builddir/%_sourcedir
# Empty file used for the meta package
cat >> meta_package << EOF
This is a meta package, it does not contain any file
EOF
%__sed -i 's|--scales=0.5|--scales=0.5,0.75,1,1.25,1.5,1.75,2,3|g' build-svg.sh
%build
bash build-svg.sh
%install
%make_install
%post
%postun
%files
%doc meta_package
%files doc
%doc README.md AUTHORS
%license LICENSE$str
%changelog
"
echo $spec >oreo-cursors.spec