diff options
author | Matthias Lisin | 2019-12-02 10:25:21 +0100 |
---|---|---|
committer | Matthias Lisin | 2019-12-02 10:25:21 +0100 |
commit | 339d6770394fedb55bc7ba0c3d0e65540a2bdb6d (patch) | |
tree | 01f6c1748489c3c28552e9419aa5f86fc08b962b | |
parent | 94d10510e79c009c8fb5b7fcbc8ae57af5a112f2 (diff) | |
download | aur-339d6770394fedb55bc7ba0c3d0e65540a2bdb6d.tar.gz |
upgpkg: rocketchat-desktop 2.17.0-1
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 17 | ||||
-rw-r--r-- | patch-node-spellchecker.patch | 89 |
3 files changed, 9 insertions, 107 deletions
@@ -1,7 +1,7 @@ pkgbase = rocketchat-desktop pkgdesc = Rocket.Chat Native Cross-Platform Desktop Application via Electron. - pkgver = 2.16.2 - pkgrel = 2 + pkgver = 2.17.0 + pkgrel = 1 url = https://github.com/RocketChat/Rocket.Chat.Electron arch = i686 arch = x86_64 @@ -14,18 +14,16 @@ pkgbase = rocketchat-desktop depends = electron optdepends = hunspell-en_US: spell checking conflicts = rocketchat-client-bin - source = rocketchat-desktop-2.16.2.tar.gz::https://github.com/RocketChat/Rocket.Chat.Electron/archive/2.16.2.tar.gz + source = rocketchat-desktop-2.17.0.tar.gz::https://github.com/RocketChat/Rocket.Chat.Electron/archive/2.17.0.tar.gz source = rocketchat-desktop source = rocketchat-desktop.desktop source = fix-build.patch source = fix-spellchecking.patch - source = patch-node-spellchecker.patch - sha512sums = 79a1431f72236eff1a421ed88b4f5168c480efcf36fd58b9a34c13366084b814c6ea50507bbfe24bebf0de5a55e7bd6c9ae0c1af9ca6824c4ad157c0938afd5c + sha512sums = a8e304c97f12879b8f9f4535cb9c5fefccd8cc6acb5f6456a4f2119a34d7df8952575e7187841893a327497730d2fe1cd95e756d059fcaf2ad83a6e0196cd55d sha512sums = 1f0f7197012421ff42d2936f73e697e35eef8c57fb9fed59ee022f9d170d6496407f89e426526fba8451fe304b3a8de1724d1cd14bd85d781bbf6aa9ca078d7d sha512sums = d87664b9bdf30eac3011393d094962e0d568a94b5eaf4c8e5f17529442dcba905cea7341527066102a97a07a981acd6ce045b8737eb78a7d81a2a2d05023fe26 sha512sums = f614b29f3fb330e870edd51a3f1b9ca05c72c2c937a5a4d23797947751d55f8ac8db217f8edbe277e721c1a07f5bc84fd0be7a4903a7d991f7a9eb9625f34ce9 sha512sums = 030f7088dcff15cfe6f7f16814f800d92a833f2ac53eb373554587b64979f77081013c93dd7559b8198aa8aa2bf871e422c6c86d579936c7378670dac52944e8 - sha512sums = b0fd7d0835bb4a15d7a2e4313a9b5e8b98143bf0c93b47e4430b2c5237a410ac1946016ee9441dd379b8c1a1b5db1ee99a13c384b539785b6604e27442c5fa09 pkgname = rocketchat-desktop @@ -1,9 +1,9 @@ # Maintainer: Matthias Lisin <ml@visu.li> # Contributor: sum01 <sum01@protonmail.com> pkgname=rocketchat-desktop -pkgver=2.16.2 +pkgver=2.17.0 _srcname="Rocket.Chat.Electron-$pkgver" -pkgrel=2 +pkgrel=1 pkgdesc='Rocket.Chat Native Cross-Platform Desktop Application via Electron.' arch=('i686' 'x86_64') url="https://github.com/RocketChat/Rocket.Chat.Electron" @@ -16,14 +16,12 @@ source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz" rocketchat-desktop rocketchat-desktop.desktop fix-build.patch - fix-spellchecking.patch - patch-node-spellchecker.patch) -sha512sums=('79a1431f72236eff1a421ed88b4f5168c480efcf36fd58b9a34c13366084b814c6ea50507bbfe24bebf0de5a55e7bd6c9ae0c1af9ca6824c4ad157c0938afd5c' + fix-spellchecking.patch) +sha512sums=('a8e304c97f12879b8f9f4535cb9c5fefccd8cc6acb5f6456a4f2119a34d7df8952575e7187841893a327497730d2fe1cd95e756d059fcaf2ad83a6e0196cd55d' '1f0f7197012421ff42d2936f73e697e35eef8c57fb9fed59ee022f9d170d6496407f89e426526fba8451fe304b3a8de1724d1cd14bd85d781bbf6aa9ca078d7d' 'd87664b9bdf30eac3011393d094962e0d568a94b5eaf4c8e5f17529442dcba905cea7341527066102a97a07a981acd6ce045b8737eb78a7d81a2a2d05023fe26' 'f614b29f3fb330e870edd51a3f1b9ca05c72c2c937a5a4d23797947751d55f8ac8db217f8edbe277e721c1a07f5bc84fd0be7a4903a7d991f7a9eb9625f34ce9' - '030f7088dcff15cfe6f7f16814f800d92a833f2ac53eb373554587b64979f77081013c93dd7559b8198aa8aa2bf871e422c6c86d579936c7378670dac52944e8' - 'b0fd7d0835bb4a15d7a2e4313a9b5e8b98143bf0c93b47e4430b2c5237a410ac1946016ee9441dd379b8c1a1b5db1ee99a13c384b539785b6604e27442c5fa09') + '030f7088dcff15cfe6f7f16814f800d92a833f2ac53eb373554587b64979f77081013c93dd7559b8198aa8aa2bf871e422c6c86d579936c7378670dac52944e8') if [[ $CARCH == "i686" ]]; then _releasename="release:linux-ia32" _distname="linux-ia32-unpacked" @@ -39,11 +37,6 @@ prepare() { cd "$_srcname" yarn upgrade "electron@$(sed '/^v/ d' /usr/lib/electron/version)" --non-interactive --cache-folder "$srcdir/yarn-cache" - - # Patching node-spellchecker to work with Electron 7 - # https://github.com/atom/node-spellchecker/issues/127 - # https://github.com/atom/node-spellchecker/pull/128 - patch -N -p1 -d node_modules/spellchecker -i "$srcdir/patch-node-spellchecker.patch" } build() { diff --git a/patch-node-spellchecker.patch b/patch-node-spellchecker.patch deleted file mode 100644 index 101a894ab7de..000000000000 --- a/patch-node-spellchecker.patch +++ /dev/null @@ -1,89 +0,0 @@ -commit 613ff91dd2d9a5ee0e86be8a3682beecc4e94887 -Author: Hal Gentz <zegentzy@protonmail.com> -Date: Thu Oct 24 06:17:40 2019 -0600 - - Fix for v8 in node 12. - - Signed-off-by: Hal Gentz <zegentzy@protonmail.com> ---- - src/main.cc | 22 ++++++++++++++++------ - src/worker.cc | 12 +++++++++--- - 2 files changed, 25 insertions(+), 9 deletions(-) - -diff --git a/src/main.cc b/src/main.cc -index 0318ac5..b834148 100644 ---- a/src/main.cc -+++ b/src/main.cc -@@ -134,9 +134,15 @@ class Spellchecker : public Nan::ObjectWrap { - uint32_t start = iter->start, end = iter->end; - - Local<Object> misspelled_range = Nan::New<Object>(); -- misspelled_range->Set(Nan::New("start").ToLocalChecked(), Nan::New<Integer>(start)); -- misspelled_range->Set(Nan::New("end").ToLocalChecked(), Nan::New<Integer>(end)); -- result->Set(index, misspelled_range); -+ { -+ Isolate* isolate = misspelled_range->GetIsolate(); -+ Local<Context> context = isolate->GetCurrentContext(); -+ misspelled_range->Set(context, Nan::New("start").ToLocalChecked(), Nan::New<Integer>(start)).Check(); -+ misspelled_range->Set(context, Nan::New("end").ToLocalChecked(), Nan::New<Integer>(end)).Check(); -+ } -+ Isolate* isolate = result->GetIsolate(); -+ Local<Context> context = isolate->GetCurrentContext(); -+ result->Set(context, index, misspelled_range).Check(); - } - } - -@@ -220,7 +226,9 @@ class Spellchecker : public Nan::ObjectWrap { - Local<Array> result = Nan::New<Array>(dictionaries.size()); - for (size_t i = 0; i < dictionaries.size(); ++i) { - const std::string& dict = dictionaries[i]; -- result->Set(i, Nan::New(dict.data(), dict.size()).ToLocalChecked()); -+ Isolate* isolate = result->GetIsolate(); -+ Local<Context> context = isolate->GetCurrentContext(); -+ result->Set(context, i, Nan::New(dict.data(), dict.size()).ToLocalChecked()).Check(); - } - - info.GetReturnValue().Set(result); -@@ -246,7 +254,9 @@ class Spellchecker : public Nan::ObjectWrap { - const std::string& word = corrections[i]; - - Nan::MaybeLocal<String> val = Nan::New<String>(word.data(), word.size()); -- result->Set(i, val.ToLocalChecked()); -+ Isolate* isolate = result->GetIsolate(); -+ Local<Context> context = isolate->GetCurrentContext(); -+ result->Set(context, i, val.ToLocalChecked()).Check(); - } - - info.GetReturnValue().Set(result); -@@ -286,7 +296,7 @@ class Spellchecker : public Nan::ObjectWrap { - - Isolate* isolate = exports->GetIsolate(); - Local<Context> context = isolate->GetCurrentContext(); -- exports->Set(Nan::New("Spellchecker").ToLocalChecked(), tpl->GetFunction(context).ToLocalChecked()); -+ exports->Set(context, Nan::New("Spellchecker").ToLocalChecked(), tpl->GetFunction(context).ToLocalChecked()).Check(); - } - }; - -diff --git a/src/worker.cc b/src/worker.cc -index fbae5ec..0314e91 100644 ---- a/src/worker.cc -+++ b/src/worker.cc -@@ -35,9 +35,15 @@ void CheckSpellingWorker::HandleOKCallback() { - uint32_t start = iter->start, end = iter->end; - - Local<Object> misspelled_range = Nan::New<Object>(); -- misspelled_range->Set(Nan::New("start").ToLocalChecked(), Nan::New<Integer>(start)); -- misspelled_range->Set(Nan::New("end").ToLocalChecked(), Nan::New<Integer>(end)); -- result->Set(index, misspelled_range); -+ { -+ Isolate* isolate = misspelled_range->GetIsolate(); -+ Local<Context> context = isolate->GetCurrentContext(); -+ misspelled_range->Set(context, Nan::New("start").ToLocalChecked(), Nan::New<Integer>(start)).Check(); -+ misspelled_range->Set(context, Nan::New("end").ToLocalChecked(), Nan::New<Integer>(end)).Check(); -+ } -+ Isolate* isolate = result->GetIsolate(); -+ Local<Context> context = isolate->GetCurrentContext(); -+ result->Set(context, index, misspelled_range).Check(); - } - - Local<Value> argv[] = { Nan::Null(), result }; |