commit:     a1210139ecc4e299e95cb85dcd3adcf5152a5fe1
Author:     Avis Drożniak <avis <AT> autistici <DOT> org>
AuthorDate: Sat Apr 10 19:07:41 2021 +0000
Commit:     Avis Drożniak <avis <AT> autistici <DOT> org>
CommitDate: Sat Apr 10 19:07:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a1210139

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

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Avis Drożniak <avis <AT> autistici.org>

 app-editors/typora-bin/Manifest               |  1 +
 app-editors/typora-bin/files/Typora.desktop   | 13 ++++++++
 app-editors/typora-bin/metadata.xml           |  9 ++++++
 app-editors/typora-bin/typora-bin-9999.ebuild | 43 +++++++++++++++++++++++++++
 4 files changed, 66 insertions(+)

diff --git a/app-editors/typora-bin/Manifest b/app-editors/typora-bin/Manifest
new file mode 100644
index 000000000..aa2a5bb95
--- /dev/null
+++ b/app-editors/typora-bin/Manifest
@@ -0,0 +1 @@
+DIST typora-9999-linux-x64.tar.gz 90347518 BLAKE2B 
09ad07338afd4f91769f317edfda60b006a7b20b328ea7e74dfe742e7d20d81333e951532ce869961509cca7000f34295a328cc919b7450dd3bd0a7ead49afd7
 SHA512 
0ab3a1c0bdd32fe1b7311e1d02f6962a477c7209710c95fd66d1490a3cba3b823263baa42305250ad8ef113394b8a5faec3f9a2557ecd3402dc5aa5134c3c602

diff --git a/app-editors/typora-bin/files/Typora.desktop 
b/app-editors/typora-bin/files/Typora.desktop
new file mode 100644
index 000000000..71ebddaf5
--- /dev/null
+++ b/app-editors/typora-bin/files/Typora.desktop
@@ -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
+

diff --git a/app-editors/typora-bin/metadata.xml 
b/app-editors/typora-bin/metadata.xml
new file mode 100644
index 000000000..639536a95
--- /dev/null
+++ b/app-editors/typora-bin/metadata.xml
@@ -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>[email protected]</email>
+               <name>Avis Drożniak</name>
+       </maintainer>
+       <longdescription>Markdown editor and reader.</longdescription>
+</pkgmetadata>

diff --git a/app-editors/typora-bin/typora-bin-9999.ebuild 
b/app-editors/typora-bin/typora-bin-9999.ebuild
new file mode 100644
index 000000000..7ef2c8c40
--- /dev/null
+++ b/app-editors/typora-bin/typora-bin-9999.ebuild
@@ -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/[email protected]" "${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
+}

Reply via email to