Github messages for voidlinux
 help / color / mirror / Atom feed
From: shnaps <shnaps@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: Logseq-0.9.8
Date: Thu, 10 Aug 2023 04:52:16 +0200	[thread overview]
Message-ID: <20230810025216.ITgXNJQzLXtjmlaroeqav6UUhqlUIsk3allEety8h0k@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44337@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 673 bytes --]

There is an updated pull request by shnaps against master on the void-packages repository

https://github.com/shnaps/void-packages Logseq
https://github.com/void-linux/void-packages/pull/44337

New package: Logseq-0.9.8
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)


A patch file from https://github.com/void-linux/void-packages/pull/44337.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-Logseq-44337.patch --]
[-- Type: text/x-diff, Size: 3306 bytes --]

From 18a6e358cdf2d5eb01f7ca81ba03e14c422ef5d0 Mon Sep 17 00:00:00 2001
From: Viachaslau Ravinski <shnapsx@gmail.com>
Date: Fri, 9 Jun 2023 12:24:16 -0700
Subject: [PATCH] New package: Logseq-0.9.8

---
 srcpkgs/Logseq/files/Logseq.desktop | 11 +++++++
 srcpkgs/Logseq/files/Logseq.sh      | 15 ++++++++++
 srcpkgs/Logseq/template             | 45 +++++++++++++++++++++++++++++
 3 files changed, 71 insertions(+)
 create mode 100644 srcpkgs/Logseq/files/Logseq.desktop
 create mode 100644 srcpkgs/Logseq/files/Logseq.sh
 create mode 100644 srcpkgs/Logseq/template

diff --git a/srcpkgs/Logseq/files/Logseq.desktop b/srcpkgs/Logseq/files/Logseq.desktop
new file mode 100644
index 0000000000000..c0f64e6dbe971
--- /dev/null
+++ b/srcpkgs/Logseq/files/Logseq.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Logseq
+Exec=/usr/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/srcpkgs/Logseq/files/Logseq.sh b/srcpkgs/Logseq/files/Logseq.sh
new file mode 100644
index 0000000000000..28e420474cb12
--- /dev/null
+++ b/srcpkgs/Logseq/files/Logseq.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env sh
+# Launches Logseq with flags specified in $XDG_CONFIG_HOME/logseq-flags.conf
+
+# Make script fail if `cat` fails for some reason
+set -e
+
+# Set default value if variable is unset/null
+XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
+
+# Attempt to read a config file if it exists
+if [ -r "${XDG_CONFIG_HOME}/logseq-flags.conf" ]; then
+  LOGSEQ_USER_FLAGS="$(cat "$XDG_CONFIG_HOME/logseq-flags.conf")"
+fi
+
+exec /usr/lib/Logseq/Logseq $LOGSEQ_USER_FLAGS "$@"
diff --git a/srcpkgs/Logseq/template b/srcpkgs/Logseq/template
new file mode 100644
index 0000000000000..cf00403f94789
--- /dev/null
+++ b/srcpkgs/Logseq/template
@@ -0,0 +1,45 @@
+# Template file for 'Logseq'
+pkgname=Logseq
+version=0.9.8
+revision=1
+archs="x86_64"
+hostmakedepends="nodejs yarn clojure python3 git"
+short_desc="Open-source platform for knowledge sharing and management"
+maintainer="shnaps <shnapsx@gmail.com>"
+license="AGPL-3.0-only"
+homepage="https://github.com/logseq/logseq"
+distfiles="https://github.com/logseq/logseq/archive/refs/tags/${version}.tar.gz"
+checksum=2dd28a81aaff9436efdd1610c8cb07291b03913ed0541224cac0e5d52b46f208
+nostrip_files="Logseq"
+
+do_configure() {
+	# download required js modules
+	yarn install
+
+	# create and sync files to folder `static`
+	yarn gulp:build
+
+	# go to folder `static` and download required js modules in static
+	cd "static"
+	yarn install
+
+	# go back to the top-level folder and download clojure dependencies
+	cd "${XBPS_BUILDDIR}/${pkgname}-${version}"
+	clojure -P -M:cljs
+}
+
+do_build() {
+	cd "${XBPS_BUILDDIR}/${pkgname}-${version}"
+	yarn cljs:release
+	cd "static"
+	yarn electron-forge package
+}
+
+do_install() {
+	vinstall "${FILESDIR}/Logseq.desktop" 644 usr/share/applications
+	vinstall "static/out/Logseq-linux-x64/resources/app/icons/logseq.png" 644 usr/share/pixmaps logseq.png
+	vcopy "static/out/Logseq-linux-x64/" usr/lib/Logseq
+	vlicense "static/out/Logseq-linux-x64/LICENSE"
+	vlicense "static/out/Logseq-linux-x64/LICENSES.chromium.html"
+	vbin "${FILESDIR}/Logseq.sh" Logseq
+}

  parent reply	other threads:[~2023-08-10  2:52 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-09 19:36 [PR PATCH] " shnaps
2023-06-10  7:29 ` [PR PATCH] [Updated] " shnaps
2023-06-10  7:31 ` shnaps
2023-06-11 10:41 ` unrealjo
2023-06-11 11:17 ` classabbyamp
2023-06-11 16:16 ` unrealjo
2023-06-11 16:31 ` classabbyamp
2023-06-11 22:21 ` unrealjo
2023-06-11 22:25 ` [PR REVIEW] " classabbyamp
2023-06-11 22:25 ` classabbyamp
2023-06-12 17:09 ` shnaps
2023-06-12 17:14 ` shnaps
2023-06-12 19:00 ` classabbyamp
2023-06-12 21:50 ` shnaps
2023-06-19 17:39 ` [PR PATCH] [Updated] [WIP] " shnaps
2023-06-19 18:05 ` [PR REVIEW] [WIP] New package: Logseq-0.9.9 shnaps
2023-06-19 20:06 ` [PR PATCH] [Updated] " shnaps
2023-06-19 20:08 ` shnaps
2023-06-19 20:16 ` shnaps
2023-06-19 20:44 ` [PR PATCH] [Updated] [WIP] New package: Logseq-0.9.8 shnaps
2023-06-19 20:47 ` shnaps
2023-06-20  0:20 ` [PR PATCH] [Updated] " shnaps
2023-06-20  0:23 ` shnaps
2023-06-26  1:42 ` shnaps
2023-08-10  2:52 ` shnaps [this message]
2023-08-10  2:53 ` shnaps
2023-08-10  2:55 ` shnaps
2023-08-10  2:57 ` shnaps
2023-08-13 21:01 ` unrealjo
2023-08-13 21:01 ` unrealjo
2023-08-27  4:49 ` [PR PATCH] [Updated] " shnaps
2023-08-27  8:13 ` shnaps
2023-08-27  8:16 ` [PR PATCH] [Updated] New package: Logseq-0.9.15 shnaps
2023-08-27  8:19 ` shnaps
2023-08-27  8:38 ` [PR PATCH] [Updated] " shnaps
2023-09-06 18:04 ` shnaps
2023-09-06 18:07 ` [PR PATCH] [Updated] New package: Logseq-0.9.16 shnaps
2023-09-07 21:33 ` shnaps
2023-10-16 15:32 ` [PR PATCH] [Updated] New package: Logseq-0.9.17 shnaps
2024-01-15  1:48 ` github-actions
2024-01-30  1:44 ` [PR PATCH] [Closed]: " github-actions
2024-03-23 10:19 ` gontcharovd
2024-03-26 23:27 ` shnaps
2024-04-06 12:12 ` gontcharovd
2024-04-12  0:43 ` shnaps

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230810025216.ITgXNJQzLXtjmlaroeqav6UUhqlUIsk3allEety8h0k@z \
    --to=shnaps@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).