Группа :: Графические оболочки/KDE
Пакет: kde-icon-theme-aquafusion
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
#!/bin/sh
GNOME=false
if [ -z $RPM_BUILD_ROOT ]
then
echo "empty variable RPM_BUILD_ROOT"
exit 1
fi
pushd $RPM_BUILD_ROOT/usr/share/icons
for f in `find ./ -type d -maxdepth 1 -name \*?? -exec basename {} \;`
do
mv -f $f __"$f"
mv __"$f" `echo $f|tr A-Z a-z`
done
popd
for f in `find $RPM_BUILD_ROOT/usr/share/icons -type f -name index.desktop`
do
pushd `dirname $f`
#
rm -f index.theme
subst "s/Inherits=.*/Inherits=mdk-hicolor,hicolor/" index.desktop
#
if [ "$GNOME" == "true" ]
then
[ -f index.theme ] || cat index.desktop > index.theme
subst "s/Inherits=.*/Inherits=Gnome/" index.theme
subst "s/KDE Icon Theme/Icon Theme/" index.theme
else
rm -f index.theme
fi
#
find ./ -type l -exec rm -f {} \;
#
find ./ -type f -name go.png| \
while read n
do
n=`dirname $n`
ln -s go.png $n/kmenu.png ||:
done
#
popd
done