Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] riot-desktop: update to v1.5.15
@ 2020-04-15 15:45 Bendodroid
  2020-04-17 14:19 ` [PR PATCH] [Merged]: " Hoshpak
  0 siblings, 1 reply; 2+ messages in thread
From: Bendodroid @ 2020-04-15 15:45 UTC (permalink / raw)
  To: ml

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: riot-desktop: update to v1.5.15
  2020-04-15 15:45 [PR PATCH] riot-desktop: update to v1.5.15 Bendodroid
@ 2020-04-17 14:19 ` Hoshpak
  0 siblings, 0 replies; 2+ messages in thread
From: Hoshpak @ 2020-04-17 14:19 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

riot-desktop: update to v1.5.15
https://github.com/void-linux/void-packages/pull/21023

Description:
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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-17 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15 15:45 [PR PATCH] riot-desktop: update to v1.5.15 Bendodroid
2020-04-17 14:19 ` [PR PATCH] [Merged]: " Hoshpak

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).