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@riseup.net>
This commit is contained in:
Andrew Ammerlaan
2021-04-13 14:17:48 +02:00
parent 6874897e21
commit 8de3fb216c

View File

@@ -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"
}