[telegnome] Actually install icons
- From: Colin Watson <cjwatson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [telegnome] Actually install icons
- Date: Thu, 18 Feb 2016 12:58:40 +0000 (UTC)
commit aee9ea3ab9ed1da9d26483787d45a9ce20babdcb
Author: Colin Watson <cjwatson debian org>
Date: Thu Feb 18 12:55:53 2016 +0000
Actually install icons
* pixmaps/telegnome-icon.png: Rename to ...
* pixmaps/telegnome-icon-48x48.png: ... this.
* pixmaps/telegnome-icon-64x64.png: New file, unfortunately just
resized from the 48x48 version since I don't have anything like an
SVG source file. This is enough to satisfy AppStream without
suffering too badly from resizing.
* pixmaps/Makefile.am: Install icons to $(datadir)/icons/hicolor/.
pixmaps/Makefile.am | 38 +++++++++++++++++++-
...telegnome-icon.png => telegnome-icon-48x48.png} | Bin 3949 -> 3949 bytes
pixmaps/telegnome-icon-64x64.png | Bin 0 -> 6523 bytes
3 files changed, 37 insertions(+), 1 deletions(-)
---
diff --git a/pixmaps/Makefile.am b/pixmaps/Makefile.am
index 9f76a73..37812fa 100644
--- a/pixmaps/Makefile.am
+++ b/pixmaps/Makefile.am
@@ -1 +1,37 @@
-EXTRA_DIST = telegnome-logo.png testbeeld.png telegnome-icon.png
+icons = \
+ telegnome-icon-48x48.png \
+ telegnome-icon-64x64.png
+
+install-icons:
+ set -e; for icon in $(icons); do \
+ size=$$(echo "$$icon" | cut -d- -f3 | cut -d. -f1); \
+ mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/$$size/apps; \
+ $(INSTALL_DATA) $(srcdir)/$$icon \
+ $(DESTDIR)$(datadir)/icons/hicolor/$$size/apps/telegnome.png; \
+ done
+
+uninstall-icons:
+ set -e; for icon in $(icons); do \
+ size=$$(echo "$$icon" | cut -d- -f3 | cut -d. -f1); \
+ rm -f $(DESTDIR)$(datadir)/icons/hicolor/$$size/apps/telegnome.png; \
+ done
+
+GTK_UPDATE_ICON_CACHE = gtk-update-icon-cache -f -t
+
+update-icon-cache:
+ @-if test -z "$(DESTDIR)"; then \
+ echo "Updating Gtk icon cache."; \
+ $(GTK_UPDATE_ICON_CACHE) $(datadir)/icons/hicolor; \
+ else \
+ echo "*** Icon cache not updated. After (un)install, run this:"; \
+ echo "*** $(GTK_UPDATE_ICON_CACHE) $(datadir)/icons/hicolor"; \
+ fi
+
+install-data-local: install-icons update-icon-cache
+
+uninstall-local: uninstall-icons update-icon-cache
+
+EXTRA_DIST = \
+ $(icons) \
+ telegnome-logo.png \
+ testbeeld.png
diff --git a/pixmaps/telegnome-icon-64x64.png b/pixmaps/telegnome-icon-64x64.png
new file mode 100644
index 0000000..91d391f
Binary files /dev/null and b/pixmaps/telegnome-icon-64x64.png differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]