net-misc/cmst: update icon cache
authorMichael Palimaka <kensington@gentoo.org>
Tue, 25 Apr 2017 05:15:33 +0000 (15:15 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Tue, 25 Apr 2017 05:15:47 +0000 (15:15 +1000)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

net-misc/cmst/cmst-2017.03.18.ebuild

index 36d6de0f600e2291fdb5f182fe39e000782b52ec..9eea2f71f8f3c1d710e9cc99b3fc4528000ceb48 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit qmake-utils
+inherit gnome2-utils qmake-utils
 
 DESCRIPTION="Qt GUI for Connman with system tray icon"
 HOMEPAGE="https://github.com/andrew-bibb/cmst"
@@ -34,3 +34,15 @@ src_install() {
        emake INSTALL_ROOT="${D}" install
        rm -r "${D}"/usr/share/licenses || die
 }
+
+pkg_preinst() {
+       gnome2_icon_savelist
+}
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+}