commit:     8de3fb216c039f2f8ad477e35c633320461ed90f
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Tue Apr 13 12:17:48 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Tue Apr 13 12:17:48 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8de3fb21

app-editors/typora-bin: fix desktop file and xdg

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 app-editors/typora-bin/typora-bin-9999.ebuild | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/app-editors/typora-bin/typora-bin-9999.ebuild 
b/app-editors/typora-bin/typora-bin-9999.ebuild
index 06a72c1d8..fc1051d6e 100644
--- a/app-editors/typora-bin/typora-bin-9999.ebuild
+++ b/app-editors/typora-bin/typora-bin-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit xdg-utils desktop
+inherit desktop xdg
 
 DESCRIPTION="a markdown editor,markdown reader."
 HOMEPAGE="https://typora.io";
@@ -20,6 +20,8 @@ RDEPEND="
        ${DEPEND}"
 BDEPEND=""
 
+QA_PREBUILT="*"
+
 src_unpack() {
        if [ ${A} != "" ]; then
                unpack ${A}
@@ -34,9 +36,5 @@ src_install() {
        dosym -r /opt/Typora-linux-x64/Typora /usr/bin/Typora
        fperms 0755 /opt/Typora-linux-x64/Typora
        fperms 4755 /opt/Typora-linux-x64/chrome-sandbox
-       domenu /usr/share/applications/
-}
-
-pkg_postinst() {
-       xdg_desktop_database_update
+       domenu "${FILESDIR}/Typora.desktop"
 }

Reply via email to