mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-22 17:17:03 +02:00
New package: Rocket.Chat-Desktop-2.17.11
This commit is contained in:
parent
3277fe0fc2
commit
dd68e51355
4 changed files with 60 additions and 0 deletions
2
srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop
Normal file
2
srcpkgs/Rocket.Chat-Desktop/files/Rocket.Chat-Desktop
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec electron7 /usr/lib/Rocket.Chat-Desktop.asar "$@"
|
|
@ -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
|
|
@ -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);
|
||||
|
33
srcpkgs/Rocket.Chat-Desktop/template
Normal file
33
srcpkgs/Rocket.Chat-Desktop/template
Normal file
|
@ -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
|
||||
}
|
Loading…
Add table
Reference in a new issue