summaryrefslogtreecommitdiffstats
path: root/network/riot-web/riot-web.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/riot-web/riot-web.SlackBuild')
-rw-r--r--network/riot-web/riot-web.SlackBuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/network/riot-web/riot-web.SlackBuild b/network/riot-web/riot-web.SlackBuild
index ef5f0a3b22..a14a65d626 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.2.1}
+VERSION=${VERSION:-1.5.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -74,9 +74,11 @@ mkdir -p $PKG/opt
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" \
+mkdir -p $PKG/usr/local/bin
+echo -e "#!/bin/sh
+cd /opt/riot-web && python -m SimpleHTTPServer 8000 &
+sleep 5
+$BROWSER http://localhost:8000" \
> $PKG/usr/bin/riot-web
chmod a+x $PKG/usr/bin/riot-web