net-im/zoom: Fix desktop entry.
authorUlrich Müller <ulm@gentoo.org>
Tue, 24 Mar 2020 19:22:53 +0000 (20:22 +0100)
committerUlrich Müller <ulm@gentoo.org>
Tue, 24 Mar 2020 19:24:06 +0000 (20:24 +0100)
Bug: https://bugs.gentoo.org/714166
Package-Manager: Portage-2.3.95, Repoman-2.3.21
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
net-im/zoom/zoom-3.5.372466.0322-r1.ebuild [moved from net-im/zoom/zoom-3.5.372466.0322.ebuild with 83% similarity]

similarity index 83%
rename from net-im/zoom/zoom-3.5.372466.0322.ebuild
rename to net-im/zoom/zoom-3.5.372466.0322-r1.ebuild
index d867c317bffb51a67b81821364a33e6eb8e05c40..4c181df99b4b2c00f37da5c19002c3915c6f51ce 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit desktop eutils
+inherit desktop eutils xdg-utils
 
 DESCRIPTION="Video conferencing and web conferencing service"
 HOMEPAGE="https://zoom.us/"
@@ -50,5 +50,14 @@ src_install() {
        use amd64 && doins icudtl.dat
        doexe zoom{,.sh,linux} zopen ZoomLauncher
        make_wrapper zoom ./zoom /opt/zoom
-       make_desktop_entry zoom zoom audio-headset
+       make_desktop_entry "zoom %U" Zoom audio-headset "" \
+               "MimeType=x-scheme-handler/zoommtg;application/x-zoom;"
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
 }