Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Joplin
@ 2020-12-05  2:24 fosslinux
  2020-12-05  2:30 ` [PR PATCH] [Updated] Joplin fosslinux
                   ` (43 more replies)
  0 siblings, 44 replies; 45+ messages in thread
From: fosslinux @ 2020-12-05  2:24 UTC (permalink / raw)
  To: ml

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

There is a new pull request by fosslinux against master on the void-packages repository

https://github.com/fosslinux/void-packages joplin-new
https://github.com/void-linux/void-packages/pull/26952

Joplin
This PR adds the `joplin-desktop` and `joplin-cli` packages, containing the GUI and CLI versions of Joplin respectively. They are not distributed in the one package as they can and should be installed separately, they are separate applications.

Closes #19585

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

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

From 6c380e08ad5dba575723ae3dde0bff61ee7d0088 Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
Date: Fri, 2 Oct 2020 18:44:06 +1000
Subject: [PATCH 1/2] New package: joplin-desktop-1.4.19.

---
 srcpkgs/joplin-desktop/files/joplin-desktop |  2 ++
 srcpkgs/joplin-desktop/files/joplin.desktop |  8 +++++
 srcpkgs/joplin-desktop/template             | 37 +++++++++++++++++++++
 3 files changed, 47 insertions(+)
 create mode 100755 srcpkgs/joplin-desktop/files/joplin-desktop
 create mode 100644 srcpkgs/joplin-desktop/files/joplin.desktop
 create mode 100644 srcpkgs/joplin-desktop/template

diff --git a/srcpkgs/joplin-desktop/files/joplin-desktop b/srcpkgs/joplin-desktop/files/joplin-desktop
new file mode 100755
index 00000000000..ea7f12ba1b0
--- /dev/null
+++ b/srcpkgs/joplin-desktop/files/joplin-desktop
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec electron10 /usr/libexec/joplin-desktop/resources/app.asar "$@"
diff --git a/srcpkgs/joplin-desktop/files/joplin.desktop b/srcpkgs/joplin-desktop/files/joplin.desktop
new file mode 100644
index 00000000000..37852543a51
--- /dev/null
+++ b/srcpkgs/joplin-desktop/files/joplin.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Joplin
+Comment=Joplin - a note taking and to-do application with synchronization capabilities for Windows, macOS, Linux, Android and iOS.
+Exec=/usr/bin/joplin-desktop
+Icon=/usr/libexec/joplin/resources/build/icons/128x128.png
+Terminal=false
+Type=Application
+Categories=Application;Office;
diff --git a/srcpkgs/joplin-desktop/template b/srcpkgs/joplin-desktop/template
new file mode 100644
index 00000000000..669756d2b5f
--- /dev/null
+++ b/srcpkgs/joplin-desktop/template
@@ -0,0 +1,37 @@
+# Template file for 'joplin-desktop'
+pkgname=joplin-desktop
+version=1.4.19
+revision=1
+wrksrc="joplin-${version}"
+hostmakedepends="nodejs python3 pkg-config rsync git p7zip tar app-builder
+ squashfs-tools"
+makedepends="libvips-devel libsecret-devel"
+depends="electron10"
+short_desc="Open source note taking and to-do application - Desktop version"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="MIT"
+homepage="https://joplinapp.org"
+distfiles="https://github.com/laurent22/joplin/archive/v${version}.tar.gz"
+checksum=55aad4fe50e2da980983a69bc7c0870626064db971550d522e266feb17d38916
+
+export USE_SYSTEM_7ZA="true"
+export USE_SYSTEM_APP_BUILDER="true"
+export USE_SYSTEM_MKSQUASHFS="true"
+
+do_build() {
+	# Remove unused modules
+	rm -rf packages/{app-mobile,app-cli,generator-joplin,app-clipper}
+
+	npm install
+	cd packages/app-desktop
+	npm run dist
+}
+
+do_install() {
+	vmkdir usr/libexec/joplin-desktop
+	vcopy packages/app-desktop/dist/linux-unpacked/* usr/libexec/joplin-desktop/
+	rm -rf "${DESTDIR}/usr/libexec/joplin-desktop/resources/app.asar.unpacked/node_modules/7zip-bin-linux"
+	vinstall "${FILESDIR}/joplin.desktop" 644 usr/share/applications/ joplin.desktop
+	vbin "${FILESDIR}/joplin-desktop"
+	vlicense LICENSE
+}

From 3076c7e461f1d62d244892ab1d5ac1d513b44ffb Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
Date: Sat, 5 Dec 2020 13:19:21 +1100
Subject: [PATCH 2/2] New package: joplin-cli-1.4.19.

---
 srcpkgs/joplin-cli/files/joplin-cli |  3 ++
 srcpkgs/joplin-cli/template         | 51 +++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 srcpkgs/joplin-cli/files/joplin-cli
 create mode 100644 srcpkgs/joplin-cli/template

diff --git a/srcpkgs/joplin-cli/files/joplin-cli b/srcpkgs/joplin-cli/files/joplin-cli
new file mode 100644
index 00000000000..9564abca48a
--- /dev/null
+++ b/srcpkgs/joplin-cli/files/joplin-cli
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/share/joplin-cli/app-cli
+node main.js "$@"
diff --git a/srcpkgs/joplin-cli/template b/srcpkgs/joplin-cli/template
new file mode 100644
index 00000000000..56651beedc8
--- /dev/null
+++ b/srcpkgs/joplin-cli/template
@@ -0,0 +1,51 @@
+# Template file for 'joplin-cli'
+pkgname=joplin-cli
+version=1.4.19
+revision=1
+wrksrc="joplin-${version}"
+hostmakedepends="nodejs git python3 pkg-config"
+makedepends="libvips-devel libsecret-devel"
+depends="nodejs"
+short_desc="Open source note taking and to-do application - CLI version"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="MIT"
+homepage="https://joplinapp.org"
+distfiles="https://github.com/laurent22/joplin/archive/v${version}.tar.gz"
+checksum=55aad4fe50e2da980983a69bc7c0870626064db971550d522e266feb17d38916
+python_version=3
+
+do_build() {
+	# Remove unused modules
+	rm -rf packages/{app-mobile,app-desktop,app-clipper,generator-joplin}
+
+	npm install
+}
+
+do_install() {
+	cd packages
+	
+	for d in app-cli fork-htmlparser2 fork-sax; do
+		vmkdir "usr/libexec/joplin-cli/${d}"
+	done
+
+	pushd app-cli
+	for d in app node_modules; do
+		vcopy "${d}" usr/libexec/joplin-cli/app-cli/
+	done
+	popd
+	
+	pushd fork-htmlparser2
+	vcopy src usr/libexec/joplin-cli/fork-htmlparser2/
+	popd
+
+	pushd fork-sax
+	vcopy lib usr/libexec/joplin-cli/fork-sax/
+	popd
+
+	for d in renderer lib; do
+		vcopy "${d}" usr/libexec/joplin-cli/
+	done
+
+	vbin "${FILESDIR}/joplin-cli"
+	vlicense ../LICENSE
+}

^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2022-05-14  2:16 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-05  2:24 [PR PATCH] Joplin fosslinux
2020-12-05  2:30 ` [PR PATCH] [Updated] Joplin fosslinux
2020-12-05  2:37 ` Joplin fosslinux
2020-12-05  3:16 ` Joplin ericonr
2020-12-05  4:20 ` Joplin ndowens
2020-12-05  4:46 ` Joplin fosslinux
2020-12-05 10:31 ` [PR PATCH] [Updated] Joplin fosslinux
2020-12-05 13:48 ` Joplin sgn
2020-12-05 14:12 ` Joplin sgn
2020-12-05 14:18 ` [PR PATCH] [Updated] Joplin sgn
2020-12-05 14:28 ` Joplin sgn
2020-12-05 22:05 ` Joplin fosslinux
2020-12-05 22:06 ` Joplin fosslinux
2020-12-05 22:19 ` [PR PATCH] [Updated] Joplin fosslinux
2020-12-05 23:38 ` [PR REVIEW] Joplin sgn
2020-12-06  4:34 ` [PR PATCH] [Updated] Joplin fosslinux
2020-12-14  3:20 ` Joplin sgn
2020-12-14  6:13 ` Joplin fosslinux
2020-12-14  6:15 ` [PR PATCH] [Updated] Joplin fosslinux
2020-12-14  6:19 ` Joplin fosslinux
2020-12-14  7:35 ` Joplin fosslinux
2020-12-17  1:53 ` Joplin fosslinux
2020-12-17  3:12 ` [PR PATCH] [Updated] Joplin fosslinux
2020-12-19  0:42 ` Joplin fosslinux
2020-12-25 22:25 ` Joplin fosslinux
2021-01-01  9:46 ` [PR PATCH] [Updated] Joplin fosslinux
2021-01-01  9:47 ` fosslinux
2021-01-01  9:48 ` Joplin fosslinux
2021-01-01  9:48 ` Joplin fosslinux
2021-01-01 10:23 ` Joplin fosslinux
2021-01-04  6:29 ` [PR PATCH] [Updated] Joplin fosslinux
2021-01-04  6:30 ` Joplin fosslinux
2021-02-01 20:10 ` Joplin ericonr
2021-02-01 20:10 ` Joplin ericonr
2021-04-18  5:12 ` Joplin ericonr
2021-04-18  7:46 ` Joplin fosslinux
2021-07-02  6:15 ` [PR PATCH] [Updated] Joplin fosslinux
2021-07-02  6:16 ` fosslinux
2021-07-02  6:16 ` fosslinux
2021-07-02  6:17 ` Joplin fosslinux
2021-07-02 12:40 ` [PR PATCH] [Updated] Joplin fosslinux
2021-09-11 14:57 ` Joplin notramo
2021-09-11 19:40 ` Joplin ericonr
2022-04-30  2:14 ` Joplin github-actions
2022-05-14  2:16 ` [PR PATCH] [Closed]: Joplin github-actions

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).