app-editors/typora-bin: add new package.

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Avis Drożniak <avis@autistici.org>
This commit is contained in:
Avis Drożniak
2021-04-10 21:07:41 +02:00
parent 09b70ca3a7
commit a1210139ec
4 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST typora-9999-linux-x64.tar.gz 90347518 BLAKE2B 09ad07338afd4f91769f317edfda60b006a7b20b328ea7e74dfe742e7d20d81333e951532ce869961509cca7000f34295a328cc919b7450dd3bd0a7ead49afd7 SHA512 0ab3a1c0bdd32fe1b7311e1d02f6962a477c7209710c95fd66d1490a3cba3b823263baa42305250ad8ef113394b8a5faec3f9a2557ecd3402dc5aa5134c3c602

View File

@@ -0,0 +1,13 @@
[Desktop Entry]
Type=Application
Name=Typora
GenericName=Markdown editor
Comment=Markdown editor
Categories=Office;Utility;TextEditor;
Exec=Typora %u
TryExec=Typora
Icon=typora
StartupWMClass=Typora
MimeType=text/md;text/markdown;application/md;
StartupNotify=true

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>avis@autistici.org</email>
<name>Avis Drożniak</name>
</maintainer>
<longdescription>Markdown editor and reader.</longdescription>
</pkgmetadata>

View File

@@ -0,0 +1,43 @@
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit xdg-utils desktop
DESCRIPTION="a markdown editor,markdown reader."
HOMEPAGE="https://typora.io"
SRC_URI="https://typora.io/linux/Typora-linux-x64.tar.gz -> typora-${PV}-linux-x64.tar.gz"
LICENSE="Typora-EULA"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND=""
RDEPEND="
x11-libs/libXScrnSaver
${DEPEND}"
BDEPEND=""
src_unpack() {
if [ ${A} != "" ]; then
unpack ${A}
fi
S="${WORKDIR}/bin/Typora-linux-x64/"
}
src_install() {
insinto /opt/
doins -r "${S}"
newicon "$S/resources/app/asserts/icon/icon_512x512@2x.png" "${PN}.png"
dosym /opt/Typora-linux-x64/Typora /usr/bin/Typora
fperms 0755 /opt/Typora-linux-x64/Typora
fperms 4755 /opt/Typora-linux-x64/chrome-sandbox
insinto /usr/share/applications/
doins "${FILESDIR}/Typora.desktop"
}
pkg_postinst() {
xdg_desktop_database_update
}