commit:     487516d0a72bff284b6cf330c90ff1e047f0662f
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  4 08:18:26 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sat Jun  4 08:19:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=487516d0

sys-process/btop: update icon cache and desktop database

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 sys-process/btop/{btop-1.2.7.ebuild => btop-1.2.7-r1.ebuild} | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/sys-process/btop/btop-1.2.7.ebuild 
b/sys-process/btop/btop-1.2.7-r1.ebuild
similarity index 81%
rename from sys-process/btop/btop-1.2.7.ebuild
rename to sys-process/btop/btop-1.2.7-r1.ebuild
index 44d1c8204f7d..59381b7f2690 100644
--- a/sys-process/btop/btop-1.2.7.ebuild
+++ b/sys-process/btop/btop-1.2.7-r1.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=8
 
+inherit xdg-utils
+
 DESCRIPTION="A monitor of resources"
 HOMEPAGE="https://github.com/aristocratos/btop";
 SRC_URI="https://github.com/aristocratos/btop/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz"
@@ -30,3 +32,13 @@ src_install() {
 
        dodoc README.md CHANGELOG.md
 }
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}

Reply via email to