* [PR PATCH] New package: Rocket.Chat-Desktop-2.17.11
@ 2020-09-04 14:13 Johnnynator
2020-09-04 14:22 ` Anachron
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Johnnynator @ 2020-09-04 14:13 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 340 bytes --]
There is a new pull request by Johnnynator against master on the void-packages repository
https://github.com/Johnnynator/void-packages RocketChat
https://github.com/void-linux/void-packages/pull/24664
New package: Rocket.Chat-Desktop-2.17.11
None
A patch file from https://github.com/void-linux/void-packages/pull/24664.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-RocketChat-24664.patch --]
[-- Type: text/x-diff, Size: 4144 bytes --]
From 8fc013cce85ce06677b6e1f627190c1270c7b2e4 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Fri, 4 Sep 2020 16:11:46 +0200
Subject: [PATCH] New package: Rocket.Chat-Desktop-2.17.11
---
.../files/Rocket.Chat-Desktop | 2 +
.../files/Rocket.Chat-Desktop.desktop | 9 +++++
.../patches/use-system-dictionaries.patch | 16 ++++++++
srcpkgs/Rocket.Chat-Desktop/template | 37 +++++++++++++++++++
4 files changed, 64 insertions(+)
create mode 100644 srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop
create mode 100644 srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop.desktop
create mode 100644 srcpkgs/Rocket.Chat-Desktop/patches/use-system-dictionaries.patch
create mode 100644 srcpkgs/Rocket.Chat-Desktop/template
diff --git a/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop b/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop
new file mode 100644
index 00000000000..003d642f9c4
--- /dev/null
+++ b/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec electron7 /usr/lib/Rocket.Chat-Desktop.asar "$@"
diff --git a/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop.desktop b/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop.desktop
new file mode 100644
index 00000000000..9662e1674af
--- /dev/null
+++ b/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Rocket.Chat
+Comment=Rocket.Chat Native Cross-Platform Desktop Application via Electron.
+Exec=Rocket.Chat-Desktop
+Terminal=false
+Type=Application
+Icon=Rocket.Chat-Desktop
+Categories=Chat;Network;InstantMessaging
+StartupWMClass=Rocket.Chat
diff --git a/srcpkgs/Rocket.Chat-Desktop/patches/use-system-dictionaries.patch b/srcpkgs/Rocket.Chat-Desktop/patches/use-system-dictionaries.patch
new file mode 100644
index 00000000000..e2a8d15b1b8
--- /dev/null
+++ b/srcpkgs/Rocket.Chat-Desktop/patches/use-system-dictionaries.patch
@@ -0,0 +1,16 @@
+diff -ura package.orig/src/scripts/spellChecking.js package.new/src/scripts/spellChecking.js
+--- src/scripts/spellChecking.js 2020-02-11 13:55:00.000000000 +0100
++++ src/scripts/spellChecking.js 2020-02-11 15:52:41.031198167 +0100
+@@ -140,11 +140,7 @@
+
+ await provider.initialize();
+
+- const appDirectoriesPath = path.join(
+- remote.app.getAppPath(),
+- remote.app.getAppPath().endsWith('app.asar') ? '..' : '.',
+- 'dictionaries',
+- );
++ const appDirectoriesPath = '/usr/share/hunspell';
+
+ const appDictionaries = await getPairsOfDictionaryFiles(appDirectoriesPath);
+
diff --git a/srcpkgs/Rocket.Chat-Desktop/template b/srcpkgs/Rocket.Chat-Desktop/template
new file mode 100644
index 00000000000..58a63d590b1
--- /dev/null
+++ b/srcpkgs/Rocket.Chat-Desktop/template
@@ -0,0 +1,37 @@
+# Template file for 'Rocket.Chat-Desktop'
+pkgname=Rocket.Chat-Desktop
+version=2.17.11
+revision=1
+wrksrc="Rocket.Chat.Electron-${version}"
+hostmakedepends="yarn nodejs-lts python3 pkg-config"
+makedepends="electron7 libvips-devel"
+depends="electron7"
+short_desc="Rocket.Chat Native Cross-Platform Desktop Application via Electron"
+maintainer="John <me@johnnynator.dev>"
+license="MIT"
+homepage="https://rocket.chat/"
+distfiles="https://github.com/RocketChat/Rocket.Chat.Electron/archive/${version}.tar.gz"
+checksum=2f13cc5d62b2246db8715809c4278748a770e5975f1a439a5d922ef7af4e26b7
+
+do_configure() {
+ yarn upgrade electron@"$(</usr/lib/electron7/version)" @babel/core@7.8.7 @babel/preset-env@7.8.7 --non-interactive
+}
+
+do_build() {
+ export NODE_ENV=production
+ yarn gulp build
+ yarn run electron-builder --linux --x64 --dir \
+ -c.electronDist=/usr/lib/electron7 \
+ -c.electronVersion="$(</usr/lib/electron7/version)"
+}
+do_install() {
+ local build
+ case "$XBPS_TARGET_MACHINE" in
+ *) build=linux-unpacked;;
+ esac
+ vinstall "${FILESDIR}/Rocket.Chat-Desktop.desktop" 644 usr/share/applications
+ vbin "$FILESDIR/Rocket.Chat-Desktop"
+ vinstall build/icons/512x512.png 644 usr/share/icons/hicolor/512x512/apps Rocket.Chat-Desktop.png
+ vlicense LICENSE
+ vinstall "dist/$build/resources/app.asar" 644 /usr/lib Rocket.Chat-Desktop.asar
+}
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: New package: Rocket.Chat-Desktop-2.17.11
2020-09-04 14:13 [PR PATCH] New package: Rocket.Chat-Desktop-2.17.11 Johnnynator
@ 2020-09-04 14:22 ` Anachron
2020-09-04 14:23 ` Anachron
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Anachron @ 2020-09-04 14:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 189 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/24664#issuecomment-687176286
Comment:
I'm so happy we have a shared electron pkg now.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: New package: Rocket.Chat-Desktop-2.17.11
2020-09-04 14:13 [PR PATCH] New package: Rocket.Chat-Desktop-2.17.11 Johnnynator
2020-09-04 14:22 ` Anachron
@ 2020-09-04 14:23 ` Anachron
2020-09-04 14:24 ` Anachron
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Anachron @ 2020-09-04 14:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 201 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/24664#issuecomment-687177215
Comment:
Btw. Should we auto set NODE_ENV=production in a xbps hook?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: New package: Rocket.Chat-Desktop-2.17.11
2020-09-04 14:13 [PR PATCH] New package: Rocket.Chat-Desktop-2.17.11 Johnnynator
2020-09-04 14:22 ` Anachron
2020-09-04 14:23 ` Anachron
@ 2020-09-04 14:24 ` Anachron
2020-09-04 14:44 ` Johnnynator
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Anachron @ 2020-09-04 14:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 232 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/24664#issuecomment-687177215
Comment:
Btw. Should we auto set NODE_ENV=production in a xbps hook? (Check for nodejs in depends)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: New package: Rocket.Chat-Desktop-2.17.11
2020-09-04 14:13 [PR PATCH] New package: Rocket.Chat-Desktop-2.17.11 Johnnynator
` (2 preceding siblings ...)
2020-09-04 14:24 ` Anachron
@ 2020-09-04 14:44 ` Johnnynator
2020-09-04 14:56 ` Anachron
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Johnnynator @ 2020-09-04 14:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 309 bytes --]
New comment by Johnnynator on void-packages repository
https://github.com/void-linux/void-packages/pull/24664#issuecomment-687191267
Comment:
> Btw. Should we auto set NODE_ENV=production in a xbps hook? (Check for nodejs in depends)
No, it should be either unconditional or behind a build_style/helper.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: New package: Rocket.Chat-Desktop-2.17.11
2020-09-04 14:13 [PR PATCH] New package: Rocket.Chat-Desktop-2.17.11 Johnnynator
` (3 preceding siblings ...)
2020-09-04 14:44 ` Johnnynator
@ 2020-09-04 14:56 ` Anachron
2020-09-04 15:29 ` [PR PATCH] [Updated] " Johnnynator
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Anachron @ 2020-09-04 14:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 179 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/24664#issuecomment-687200359
Comment:
Sorry, I meant xbps-src build-helper.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR PATCH] [Updated] New package: Rocket.Chat-Desktop-2.17.11
2020-09-04 14:13 [PR PATCH] New package: Rocket.Chat-Desktop-2.17.11 Johnnynator
` (4 preceding siblings ...)
2020-09-04 14:56 ` Anachron
@ 2020-09-04 15:29 ` Johnnynator
2020-09-04 15:32 ` Johnnynator
2020-09-07 20:05 ` [PR PATCH] [Merged]: " Johnnynator
7 siblings, 0 replies; 9+ messages in thread
From: Johnnynator @ 2020-09-04 15:29 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 345 bytes --]
There is an updated pull request by Johnnynator against master on the void-packages repository
https://github.com/Johnnynator/void-packages RocketChat
https://github.com/void-linux/void-packages/pull/24664
New package: Rocket.Chat-Desktop-2.17.11
None
A patch file from https://github.com/void-linux/void-packages/pull/24664.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-RocketChat-24664.patch --]
[-- Type: text/x-diff, Size: 4071 bytes --]
From ba7e96669e4d1b670b807bf16fcc14974734411a Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Fri, 4 Sep 2020 16:11:46 +0200
Subject: [PATCH] New package: Rocket.Chat-Desktop-2.17.11
---
.../files/Rocket.Chat-Desktop | 2 ++
.../files/Rocket.Chat-Desktop.desktop | 9 +++++
.../patches/use-system-dictionaries.patch | 16 +++++++++
srcpkgs/Rocket.Chat-Desktop/template | 33 +++++++++++++++++++
4 files changed, 60 insertions(+)
create mode 100644 srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop
create mode 100644 srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop.desktop
create mode 100644 srcpkgs/Rocket.Chat-Desktop/patches/use-system-dictionaries.patch
create mode 100644 srcpkgs/Rocket.Chat-Desktop/template
diff --git a/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop b/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop
new file mode 100644
index 00000000000..003d642f9c4
--- /dev/null
+++ b/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec electron7 /usr/lib/Rocket.Chat-Desktop.asar "$@"
diff --git a/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop.desktop b/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop.desktop
new file mode 100644
index 00000000000..9662e1674af
--- /dev/null
+++ b/srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Rocket.Chat
+Comment=Rocket.Chat Native Cross-Platform Desktop Application via Electron.
+Exec=Rocket.Chat-Desktop
+Terminal=false
+Type=Application
+Icon=Rocket.Chat-Desktop
+Categories=Chat;Network;InstantMessaging
+StartupWMClass=Rocket.Chat
diff --git a/srcpkgs/Rocket.Chat-Desktop/patches/use-system-dictionaries.patch b/srcpkgs/Rocket.Chat-Desktop/patches/use-system-dictionaries.patch
new file mode 100644
index 00000000000..e2a8d15b1b8
--- /dev/null
+++ b/srcpkgs/Rocket.Chat-Desktop/patches/use-system-dictionaries.patch
@@ -0,0 +1,16 @@
+diff -ura package.orig/src/scripts/spellChecking.js package.new/src/scripts/spellChecking.js
+--- src/scripts/spellChecking.js 2020-02-11 13:55:00.000000000 +0100
++++ src/scripts/spellChecking.js 2020-02-11 15:52:41.031198167 +0100
+@@ -140,11 +140,7 @@
+
+ await provider.initialize();
+
+- const appDirectoriesPath = path.join(
+- remote.app.getAppPath(),
+- remote.app.getAppPath().endsWith('app.asar') ? '..' : '.',
+- 'dictionaries',
+- );
++ const appDirectoriesPath = '/usr/share/hunspell';
+
+ const appDictionaries = await getPairsOfDictionaryFiles(appDirectoriesPath);
+
diff --git a/srcpkgs/Rocket.Chat-Desktop/template b/srcpkgs/Rocket.Chat-Desktop/template
new file mode 100644
index 00000000000..7f3523fbe76
--- /dev/null
+++ b/srcpkgs/Rocket.Chat-Desktop/template
@@ -0,0 +1,33 @@
+# Template file for 'Rocket.Chat-Desktop'
+pkgname=Rocket.Chat-Desktop
+version=2.17.11
+revision=1
+wrksrc="Rocket.Chat.Electron-${version}"
+hostmakedepends="yarn nodejs-lts python3 pkg-config"
+makedepends="electron7 libvips-devel"
+depends="electron7"
+short_desc="Rocket.Chat Native Cross-Platform Desktop Application via Electron"
+maintainer="John <me@johnnynator.dev>"
+license="MIT"
+homepage="https://rocket.chat/"
+distfiles="https://github.com/RocketChat/Rocket.Chat.Electron/archive/${version}.tar.gz"
+checksum=2f13cc5d62b2246db8715809c4278748a770e5975f1a439a5d922ef7af4e26b7
+
+do_configure() {
+ yarn upgrade electron@"$(</usr/lib/electron7/version)" @babel/core@7.8.7 @babel/preset-env@7.8.7 --non-interactive
+}
+
+do_build() {
+ export NODE_ENV=production
+ yarn gulp build
+ yarn run electron-builder --linux --x64 --dir \
+ -c.electronDist=/usr/lib/electron7 \
+ -c.electronVersion="$(</usr/lib/electron7/version)"
+}
+do_install() {
+ vinstall "${FILESDIR}/Rocket.Chat-Desktop.desktop" 644 usr/share/applications
+ vbin "$FILESDIR/Rocket.Chat-Desktop"
+ vinstall build/icons/512x512.png 644 usr/share/icons/hicolor/512x512/apps Rocket.Chat-Desktop.png
+ vlicense LICENSE
+ vinstall "dist/linux-unpacked/resources/app.asar" 644 /usr/lib Rocket.Chat-Desktop.asar
+}
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: New package: Rocket.Chat-Desktop-2.17.11
2020-09-04 14:13 [PR PATCH] New package: Rocket.Chat-Desktop-2.17.11 Johnnynator
` (5 preceding siblings ...)
2020-09-04 15:29 ` [PR PATCH] [Updated] " Johnnynator
@ 2020-09-04 15:32 ` Johnnynator
2020-09-07 20:05 ` [PR PATCH] [Merged]: " Johnnynator
7 siblings, 0 replies; 9+ messages in thread
From: Johnnynator @ 2020-09-04 15:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 224 bytes --]
New comment by Johnnynator on void-packages repository
https://github.com/void-linux/void-packages/pull/24664#issuecomment-687222637
Comment:
> Sorry, I meant xbps-src build-helper.
Yeah, maybe. Point it out in #23947
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR PATCH] [Merged]: New package: Rocket.Chat-Desktop-2.17.11
2020-09-04 14:13 [PR PATCH] New package: Rocket.Chat-Desktop-2.17.11 Johnnynator
` (6 preceding siblings ...)
2020-09-04 15:32 ` Johnnynator
@ 2020-09-07 20:05 ` Johnnynator
7 siblings, 0 replies; 9+ messages in thread
From: Johnnynator @ 2020-09-07 20:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 178 bytes --]
There's a merged pull request on the void-packages repository
New package: Rocket.Chat-Desktop-2.17.11
https://github.com/void-linux/void-packages/pull/24664
Description:
None
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-09-07 20:05 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-04 14:13 [PR PATCH] New package: Rocket.Chat-Desktop-2.17.11 Johnnynator
2020-09-04 14:22 ` Anachron
2020-09-04 14:23 ` Anachron
2020-09-04 14:24 ` Anachron
2020-09-04 14:44 ` Johnnynator
2020-09-04 14:56 ` Anachron
2020-09-04 15:29 ` [PR PATCH] [Updated] " Johnnynator
2020-09-04 15:32 ` Johnnynator
2020-09-07 20:05 ` [PR PATCH] [Merged]: " Johnnynator
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).