Description: Install application icons in hicolor theme.
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: https://groups.google.com/d/msg/spatialite-users/NqdOCvTatqk/JNrfGgfIJgAJ
Applied-Upstream: https://www.gaia-gis.it/fossil/spatialite_gui/ci/f83e3d2d47

--- a/gnome_resource/Makefile.am
+++ b/gnome_resource/Makefile.am
@@ -1,2 +1,14 @@
 
 EXTRA_DIST = spatialite-gui.png spatialite-gui.desktop
+
+desktopdir = $(datadir)/applications
+desktop_DATA = spatialite-gui.desktop
+
+ICON_SIZES = 8 16 24 32 40 48 64 72 80 96 128 192 256 512
+
+install-data-local:
+	@for size in $(ICON_SIZES); do \
+		mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps; \
+		$(INSTALL_DATA) icons/hicolor/$${size}x$${size}/apps/spatialite-gui.png $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps/spatialite-gui.png; \
+	done
+
