From 617b4e195fc8e3b2bd6a8c19077b13a71ca47d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 27 Apr 2024 12:37:31 +0200 Subject: [PATCH] sys-apps/hwloc: Update XDG icon cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- sys-apps/hwloc/hwloc-2.9.3-r1.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys-apps/hwloc/hwloc-2.9.3-r1.ebuild b/sys-apps/hwloc/hwloc-2.9.3-r1.ebuild index 4d0252d24ecc0..84c0ef23b8f98 100644 --- a/sys-apps/hwloc/hwloc-2.9.3-r1.ebuild +++ b/sys-apps/hwloc/hwloc-2.9.3-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit autotools bash-completion-r1 cuda desktop flag-o-matic systemd toolchain-funcs multilib-minimal +inherit autotools bash-completion-r1 cuda desktop flag-o-matic systemd toolchain-funcs xdg-utils multilib-minimal MY_PV="v$(ver_cut 1-2)" DESCRIPTION="Displays the hardware topology in convenient formats" @@ -127,3 +127,11 @@ multilib_src_install_all() { find "${ED}" -name '*.la' -delete || die newicon -s 512 "${DISTDIR}/lstopo.png" ${PN}.png } + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +}