[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:
parent
2e3b791ab0
commit
fb906e8c5f
|
@ -1,8 +1,16 @@
|
||||||
theme = hicolor
|
theme = hicolor
|
||||||
themedir = $(pkgdatadir)/icons/$(theme)
|
system_themedir = $(datadir)/icons/$(theme)
|
||||||
hicolordir = $(DESTDIR)$(datadir)/icons/hicolor
|
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-syncing-sparkleshare-24.png \
|
||||||
animations,process-working-22.png \
|
animations,process-working-22.png \
|
||||||
places,folder-16.png \
|
places,folder-16.png \
|
||||||
|
@ -31,15 +39,16 @@ install_icon_exec = $(top_srcdir)/build/icon-theme-installer \
|
||||||
-t "$(theme)" \
|
-t "$(theme)" \
|
||||||
-s "$(srcdir)" \
|
-s "$(srcdir)" \
|
||||||
-d "x$(DESTDIR)" \
|
-d "x$(DESTDIR)" \
|
||||||
-b "$(themedir)" \
|
|
||||||
-m "$(mkinstalldirs)" \
|
-m "$(mkinstalldirs)" \
|
||||||
-x "$(INSTALL_DATA)"
|
-x "$(INSTALL_DATA)"
|
||||||
|
|
||||||
install-data-local:
|
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:
|
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
|
MAINTAINERCLEANFILES = Makefile.in
|
||||||
EXTRA_DIST = $(wildcard *.png *.svg)
|
EXTRA_DIST = $(wildcard *.png *.svg)
|
||||||
|
|
Loading…
Reference in a new issue