sci-electronics/librepcb: use xdg-utils.eclass
authorJoonas Niilola <juippis@gentoo.org>
Sun, 8 Dec 2019 10:07:53 +0000 (12:07 +0200)
committerJoonas Niilola <juippis@gentoo.org>
Sun, 8 Dec 2019 10:08:16 +0000 (12:08 +0200)
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
sci-electronics/librepcb/librepcb-0.1.3.ebuild

index 50dfacb22b3cd94922f957e5a63d7742478536bb..fe132f0537038ac33eb61cb3bd1dd92afa3a7a7e 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit qmake-utils
+inherit qmake-utils xdg-utils
 
 DESCRIPTION="Free EDA software to develop printed circuit boards"
 HOMEPAGE="https://librepcb.org/"
@@ -39,3 +39,15 @@ src_configure() {
 src_install() {
        emake INSTALL_ROOT="${D}" install
 }
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+       xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+       xdg_mimeinfo_database_update
+}