Github messages for voidlinux
 help / color / mirror / Atom feed
From: Johnnynator <Johnnynator@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: Rocket.Chat-Desktop-2.17.11
Date: Fri, 04 Sep 2020 17:29:55 +0200	[thread overview]
Message-ID: <20200904152955.y6xJn0FqphbkprYlwAg06KCXKcLACT6KiFUDMaznWSo@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24664@inbox.vuxu.org>

[-- 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
+}

  parent reply	other threads:[~2020-09-04 15:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-04 14:13 [PR PATCH] " 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 ` Johnnynator [this message]
2020-09-04 15:32 ` Johnnynator
2020-09-07 20:05 ` [PR PATCH] [Merged]: " Johnnynator

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=20200904152955.y6xJn0FqphbkprYlwAg06KCXKcLACT6KiFUDMaznWSo@z \
    --to=johnnynator@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).