tdf#132737: Don't install SVG source icons or locolor theme

These SVG icons are the source for the PNG icons in the same
directories.

scalable/mimetypes icons each contain the source for all sizes of
PNG icons and are not usable themselves.

The locolor theme is incomplete with only low resolution icons.

Change-Id: I2bc54cfbfec012c29a41e1d954d313c19a47831e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99444
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
This commit is contained in:
Chris Mayo
2020-10-29 09:23:08 +01:00
committed by Heiko Tietze
parent 1628d81571
commit f9ddaae9ca
4 changed files with 5 additions and 9 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ if [ "$1" = "configure" ] ; then # first install
update-menus
fi
# update icon-cache if already present
for theme in gnome hicolor locolor; do
for theme in gnome hicolor; do
if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
# touch it, just in case we cannot find the binary...
touch /usr/share/icons/$theme
+1 -1
View File
@@ -11,7 +11,7 @@ if [ "$1" != "purge" ]; then
if [ -x /usr/bin/update-menus ]; then
update-menus
fi
for theme in gnome hicolor locolor; do
for theme in gnome hicolor; do
if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
# touch it, just in case we cannot find the binary...
touch /usr/share/icons/$theme
@@ -171,7 +171,7 @@ do
done
#run always
for theme in gnome hicolor locolor; do
for theme in gnome hicolor; do
if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
# touch it, just in case we cannot find the binary...
touch /usr/share/icons/$theme
@@ -371,7 +371,7 @@ if [ "$1" = 0 ] ; then # only run when erasing the package - other cases handled
fi
#run always
for theme in gnome hicolor locolor; do
for theme in gnome hicolor; do
if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
# touch it, just in case we cannot find the binary...
touch /usr/share/icons/$theme
@@ -411,9 +411,5 @@ done
/usr/share/icons/hicolor/*/apps/*svg
/usr/share/icons/hicolor/*/mimetypes/*png
/usr/share/icons/hicolor/*/mimetypes/*svg
/usr/share/icons/locolor/*/apps/*png
/usr/share/icons/locolor/*/apps/*svg
/usr/share/icons/locolor/*/mimetypes/*png
/usr/share/icons/locolor/*/mimetypes/*svg
/usr/share/mime/packages/*
/usr/share/appdata/*
+1 -1
View File
@@ -19,7 +19,7 @@
umask 022
if [ "${KDEMAINDIR}" ]; then
for i in `cd "${ICON_SOURCE_DIR}"; find ${ICON_THEMES:-hicolor/???x??? hicolor/??x?? hicolor/scalable locolor} -name "*.png" -o -name "*.svg"`
for i in `cd "${ICON_SOURCE_DIR}"; find ${ICON_THEMES:-hicolor/???x??? hicolor/??x??} -name "*.png"; find hicolor/scalable/apps -name "*.svg"`
do
targetdir=${DESTDIR}/${KDEMAINDIR}/share/icons/`dirname ${i}`
mkdir -p "${targetdir}"