From ba7e96669e4d1b670b807bf16fcc14974734411a Mon Sep 17 00:00:00 2001 From: John 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 " +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@"$(