Github messages for voidlinux
 help / color / mirror / Atom feed
From: Bendodroid <Bendodroid@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] riot-desktop: update to v1.5.15
Date: Wed, 15 Apr 2020 17:45:08 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21023@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

There is a new pull request by Bendodroid against master on the void-packages repository

https://github.com/Bendodroid/void-packages Bendodroid-riot-desktop-1.5.15
https://github.com/void-linux/void-packages/pull/21023

riot-desktop: update to v1.5.15
I'm no longer using Void Linux but was approached via Email to upgrade the package, so here it is. I'm marking this as orphaned since I don't plan to update this in the future.
Tested it in a xfce vm and even tray icon worked fine.

A patch file from https://github.com/void-linux/void-packages/pull/21023.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-Bendodroid-riot-desktop-1.5.15-21023.patch --]
[-- Type: text/x-diff, Size: 2834 bytes --]

From f9d036e9142d1054e5267155101380aff4435883 Mon Sep 17 00:00:00 2001
From: Bendodroid <git@bendo.org>
Date: Wed, 15 Apr 2020 17:36:06 +0200
Subject: [PATCH] riot-desktop: update to v1.5.15

- Mark package as orphaned
---
 srcpkgs/riot-desktop/template | 35 +++++++++++++++++++++++++----------
 1 file changed, 25 insertions(+), 10 deletions(-)

diff --git a/srcpkgs/riot-desktop/template b/srcpkgs/riot-desktop/template
index 761c732153b..0b68ebbff5a 100644
--- a/srcpkgs/riot-desktop/template
+++ b/srcpkgs/riot-desktop/template
@@ -1,18 +1,18 @@
 # Template file for 'riot-desktop'
 pkgname=riot-desktop
-version=1.5.7
+version=1.5.15
 revision=1
 archs="i686 x86_64"
 wrksrc="riot-web-${version}"
 conf_files="/etc/${pkgname}/config.json"
-hostmakedepends="git yarn"
+hostmakedepends="git yarn nodejs rust cargo python sqlcipher-devel curl"
 depends="c-ares ffmpeg gtk+3 http-parser libevent libxslt minizip nss re2 snappy"
 short_desc="Glossy Matrix collaboration client, desktop version"
-maintainer="Bendodroid <bendodroid@icloud.com>"
+maintainer="Orphaned <orphan@voidlinux.org>"
 license="Apache-2.0"
 homepage="https://riot.im"
 distfiles="https://github.com/vector-im/riot-web/archive/v${version}.tar.gz"
-checksum=c11436a2fb77a3b9edc46053c4de6886a4652020e1220780a2c8863edecf5992
+checksum="3d5512f842fa436aef00b1b1f1c5ced4a4f1adc5cc1bcfddbc77573387f9cc42"
 nocross=yes
 nostrip=yes
 shlib_provides="libGLVESv2.so"
@@ -22,15 +22,30 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 
 pre_build() {
-	vsed -i package.json -e 's|-l --x64|-l --x64 --dir|'
-	yarn install --ignore-scripts
-	cd node_modules/matrix-js-sdk
-	yarn install --ignore-scripts
-	cd ../matrix-react-sdk
-	yarn install --ignore-scripts
+	# This section is borrowed from the Arch PKGBUILD
+	sed -i 's@https://riot.im/download/desktop/update/@null@g' electron_app/riot.im/config.json
+	sed -i 's/"target": "deb"/"target": "dir"/g' package.json
+	yarn install
+
+	# Add the matrix-seshat package (which is needed for search in E2E encrypted
+	# rooms) as well as the electron-build-env package, which gets used later to
+	# rebuild the native libraries against electron’s version of node.
+	# See here for more information:
+	# https://github.com/vector-im/riot-web/blob/develop/docs/native-node-modules.md#adding-seshat-for-search-in-e2e-encrypted-rooms
+	cd electron_app
+	yarn add matrix-seshat
+	yarn add electron-build-env
+	# Finally also enable the event indexing feature in the config.
+	sed -i 's/"features": {/"features": {\n        "feature_event_indexing": "enable",/' riot.im/config.json
 }
 
 do_build() {
+	# This is also borrowed from the Arch PKGBUILD
+	cd electron_app
+	# Recompile matrix-seshat
+	yarn run electron-build-env -- --electron 7 neon build matrix-seshat --release
+	cd ..
+	# Do the actual build
 	yarn build:electron:linux
 }
 

             reply	other threads:[~2020-04-15 15:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-15 15:45 Bendodroid [this message]
2020-04-17 14:19 ` [PR PATCH] [Merged]: " Hoshpak

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21023@inbox.vuxu.org \
    --to=bendodroid@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).