summaryrefslogtreecommitdiffstats
path: root/network/riot-web
diff options
context:
space:
mode:
Diffstat (limited to 'network/riot-web')
-rw-r--r--network/riot-web/README10
-rw-r--r--network/riot-web/doinst.sh3
-rw-r--r--network/riot-web/riot-web.SlackBuild8
-rw-r--r--network/riot-web/riot-web.info8
4 files changed, 20 insertions, 9 deletions
diff --git a/network/riot-web/README b/network/riot-web/README
index 20d910bc48..9b9a6376e2 100644
--- a/network/riot-web/README
+++ b/network/riot-web/README
@@ -19,7 +19,13 @@ Now with end-to-end encryption using the Olm and Megolm cryptographic ratchets
conversation.
This is a packaging of the pre-built released version of Riot (on Github).
-You should use your favourite web browser to enjoy it. Type your browser name
-before before run this script:
+
+Riot-web now is needed to run under a web server(e.g. NGINX).
+After building, a start script (in /usr/bin) is set to invoke a simple
+web server (a Python built-in module) listening at port 8000, and then start a
+web browser to access it at localhost:8000. Feel free to change these
+settings.
+
+Type your favourite browser name before running this script, e.g.
BROWSER=firefox ./riot-web.Slackbuild
diff --git a/network/riot-web/doinst.sh b/network/riot-web/doinst.sh
index 65c7e2eeb9..19926c6b1f 100644
--- a/network/riot-web/doinst.sh
+++ b/network/riot-web/doinst.sh
@@ -7,3 +7,6 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
+
+# Riot-web should have a real config to work.
+ln -sf /opt/riot-web/config.sample.json /opt/riot-web/config.json
diff --git a/network/riot-web/riot-web.SlackBuild b/network/riot-web/riot-web.SlackBuild
index 7a1e9aff42..b3a2878311 100644
--- a/network/riot-web/riot-web.SlackBuild
+++ b/network/riot-web/riot-web.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=riot-web
PKGNAM=riot
-VERSION=${VERSION:-1.1.0}
+VERSION=${VERSION:-1.6.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -75,8 +75,10 @@ mv ${PKGNAM}-v${VERSION} $PKG/opt/${PRGNAM}
# Create a script to let the browser to launch the app.
mkdir -p $PKG/usr/bin
-echo -e "#!/bin/bash
-$BROWSER /opt/${PRGNAM}/index.html" \
+echo -e "#!/bin/sh
+cd /opt/riot-web && python3 -m http.server 8000 --bind 127.0.0.1 &
+sleep 5
+$BROWSER http://localhost:8000" \
> $PKG/usr/bin/riot-web
chmod a+x $PKG/usr/bin/riot-web
diff --git a/network/riot-web/riot-web.info b/network/riot-web/riot-web.info
index 041ce792ce..72fd335d9f 100644
--- a/network/riot-web/riot-web.info
+++ b/network/riot-web/riot-web.info
@@ -1,10 +1,10 @@
PRGNAM="riot-web"
-VERSION="1.1.0"
+VERSION="1.6.0"
HOMEPAGE="https://riot.im/"
-DOWNLOAD="https://github.com/vector-im/riot-web/releases/download/v1.1.0/riot-v1.1.0.tar.gz"
-MD5SUM="f5cb55eb40b89d9e4b2c710b2b09cec1"
+DOWNLOAD="https://github.com/vector-im/riot-web/releases/download/v1.6.0/riot-v1.6.0.tar.gz"
+MD5SUM="6261bc00b53d68eea81d3db55952bf8d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3"
MAINTAINER="MDrights"
EMAIL="psychi2009@gmail.com"