[build] Install application icons in the system-wide theme

The icon to be used for system menus must be installed in the
system-wide hicolor theme directory (/usr/share/icons/hicolor). So we
install another copy of the folder-sparkleshare icon there. Fixes
bgo#626170.
This commit is contained in:
Bertrand Lorentz 2010-08-07 11:36:27 +02:00
parent 42f2f281ad
commit a4b2fe2a8d

View file

@ -1,8 +1,16 @@
theme = hicolor
themedir = $(pkgdatadir)/icons/$(theme)
hicolordir = $(DESTDIR)$(datadir)/icons/hicolor
system_themedir = $(datadir)/icons/$(theme)
app_themedir = $(pkgdatadir)/icons/$(theme)
theme_icons = \
system_theme_icons = \
apps,folder-sparkleshare-16.png \
apps,folder-sparkleshare-22.png \
apps,folder-sparkleshare-24.png \
apps,folder-sparkleshare-256.png \
apps,folder-sparkleshare-32.png \
apps,folder-sparkleshare-48.png
app_theme_icons = \
animations,process-syncing-sparkleshare-24.png \
animations,process-working-22.png \
places,folder-16.png \
@ -31,15 +39,16 @@ install_icon_exec = $(top_srcdir)/build/icon-theme-installer \
-t "$(theme)" \
-s "$(srcdir)" \
-d "x$(DESTDIR)" \
-b "$(themedir)" \
-m "$(mkinstalldirs)" \
-x "$(INSTALL_DATA)"
install-data-local:
@-$(install_icon_exec) -i $(theme_icons)
@-$(install_icon_exec) -i -b "$(system_themedir)" $(system_theme_icons)
@-$(install_icon_exec) -i -b "$(app_themedir)" $(app_theme_icons)
uninstall-hook:
@-$(install_icon_exec) -u $(theme_icons)
@-$(install_icon_exec) -u -b "$(system_themedir)" $(system_theme_icons)
@-$(install_icon_exec) -u -b "$(app_themedir)" $(app_theme_icons)
MAINTAINERCLEANFILES = Makefile.in
EXTRA_DIST = $(wildcard *.png *.svg)