commit:     e7c33972bf57742646bb007c6254702088616ee0
Author:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  9 01:18:05 2023 +0000
Commit:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Sat Dec  9 01:18:58 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7c33972

app-editors/logseq-desktop-bin: new package, add 0.10.1

Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>

 app-editors/logseq-desktop-bin/Manifest            |  1 +
 .../files/logseq-desktop.desktop                   | 10 ++++++
 .../logseq-desktop-bin-0.10.1.ebuild               | 36 ++++++++++++++++++++++
 app-editors/logseq-desktop-bin/metadata.xml        | 11 +++++++
 4 files changed, 58 insertions(+)

diff --git a/app-editors/logseq-desktop-bin/Manifest 
b/app-editors/logseq-desktop-bin/Manifest
new file mode 100644
index 000000000000..90583fd4023f
--- /dev/null
+++ b/app-editors/logseq-desktop-bin/Manifest
@@ -0,0 +1 @@
+DIST logseq-desktop-bin-0.10.1.zip 190660046 BLAKE2B 
d9f781518220ecddb176e5c89948803ab73b6376aa5b165fd3ec2235a291022b88e99dce03190d80688a40a6bf55d3e699264f1420f346a222ea4346ba7d8000
 SHA512 
21f11c7b1ea5fde4f07dfec676fe05556040dd3fae84340bbe9cc1447556fc0ad1f10d53ee94a4ade7e93f0358fbc5386297605b28c0320e6ad25dc572055909

diff --git a/app-editors/logseq-desktop-bin/files/logseq-desktop.desktop 
b/app-editors/logseq-desktop-bin/files/logseq-desktop.desktop
new file mode 100644
index 000000000000..16562511f8ec
--- /dev/null
+++ b/app-editors/logseq-desktop-bin/files/logseq-desktop.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Logseq
+Exec=/opt/bin/logseq %U
+MimeType=x-scheme-handler/logseq
+Terminal=false
+Type=Application
+Icon=logseq
+StartupWMClass=logseq
+Comment=Open Source platform for knowledge sharing and management
+Categories=Office

diff --git a/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.1.ebuild 
b/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.1.ebuild
new file mode 100644
index 000000000000..fb0bea383361
--- /dev/null
+++ b/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop unpacker
+
+DESCRIPTION="A privacy-first, open-source platform for knowledge sharing and 
management."
+HOMEPAGE="https://github.com/logseq/logseq";
+SRC_URI="https://github.com/logseq/logseq/releases/download/${PV}/logseq-linux-x64-${PV}.zip
 -> ${P}.zip"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RESTRICT="mirror splitdebug"
+
+DEPEND=""
+RDEPEND=">=dev-libs/openssl-3"
+BDEPEND="app-arch/unzip"
+
+QA_PREBUILT="*"
+S="${WORKDIR}/Logseq-linux-x64"
+
+src_install() {
+       domenu "${FILESDIR}/logseq-desktop.desktop"
+       doicon "${S}/resources/app/icons/logseq.png"
+       mkdir -p "${D}/opt/logseq-desktop" || die
+       cp -r "${S}"/* "${D}/opt/logseq-desktop/" || die
+       dosym ../logseq-desktop/Logseq /opt/bin/logseq
+}
+
+pkg_postinst() {
+       update-desktop-database
+}

diff --git a/app-editors/logseq-desktop-bin/metadata.xml 
b/app-editors/logseq-desktop-bin/metadata.xml
new file mode 100644
index 000000000000..0a67e594f20b
--- /dev/null
+++ b/app-editors/logseq-desktop-bin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>msch...@gentoo.org</email>
+               <name>Marc Schiffbauer</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">logseq/logseq</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to