aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2016-10-30 11:50:32 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-31 23:34:55 +0700
commitaaf5d009d8dbfe4b8edca7332088b1ffb4286204 (patch)
tree976171d67cb61a16935be7a080f61b5b65535ffa /network
parent7768fe5227e4ead43d959b8de7d2c2d153d73302 (diff)
network/opera-developer: Update README and script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/opera-developer/README4
-rw-r--r--network/opera-developer/default4
-rw-r--r--network/opera-developer/opera-developer19
-rw-r--r--network/opera-developer/opera-developer.SlackBuild10
4 files changed, 35 insertions, 2 deletions
diff --git a/network/opera-developer/README b/network/opera-developer/README
index 8099b78a1e52..894eb55a307f 100644
--- a/network/opera-developer/README
+++ b/network/opera-developer/README
@@ -8,4 +8,8 @@ to compress data via Opera Turbo on congested networks.
Recently, Opera bring us VPN support, Ad Blocker, and the first
version of RSS support!
+This is a Development version of Opera browser, for Stable version
+please see "opera" and for a old version based on
+Presto engine, please see a SlackBuild called "opera-legacy".
+
This suggests: pepperflash-plugin, ffmpeg, opera-developer-ffmpeg-codecs
diff --git a/network/opera-developer/default b/network/opera-developer/default
new file mode 100644
index 000000000000..380d9ccee909
--- /dev/null
+++ b/network/opera-developer/default
@@ -0,0 +1,4 @@
+# Default settings for chromium. This file is sourced by /usr/bin/chromium
+
+# Options to pass to chromium
+OPERA_FLAGS=""
diff --git a/network/opera-developer/opera-developer b/network/opera-developer/opera-developer
new file mode 100644
index 000000000000..3274e8a8f214
--- /dev/null
+++ b/network/opera-developer/opera-developer
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# Allow users to override command-line options
+# Based on Gentoo's chromium package (and by extension, Debian's)
+
+if [[ -f /etc/opera-developer/default ]]; then
+ . /etc/opera-developer/default
+fi
+
+# Prefer user defined CHROMIUM_USER_FLAGS (from env) over system
+# default CHROMIUM_FLAGS (from /etc/chromium/default)
+
+OPERA_FLAGS=${OPERA_USER_FLAGS:-$OPERA_FLAGS}
+
+if [ "$ARCH" = "x86_64" ]; then
+ exec /usr/lib64/opera-developer/opera-developer $OPERA_FLAGS "$@"
+else
+ exec /usr/lib/opera-developer/opera-developer $OPERA_FLAGS "$@"
+fi
diff --git a/network/opera-developer/opera-developer.SlackBuild b/network/opera-developer/opera-developer.SlackBuild
index 31f000475022..94a207aa940c 100644
--- a/network/opera-developer/opera-developer.SlackBuild
+++ b/network/opera-developer/opera-developer.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=opera-developer
VERSION=${VERSION:-42.0.2392.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -88,11 +88,17 @@ elif [ "$ARCH" = "x86_64" ]; then
chmod 4755 "$PKG/usr/lib64/$PRGNAM/opera_sandbox"
fi
+mkdir -p $PKG/etc/$PRGNAM/
+install -Dm644 $CWD/default $PKG/etc/$PRGNAM/default
+
+rm $PKG/usr/bin/$PRGNAM
+install -Dm755 $CWD/$PRGNAM $PKG/usr/bin/$PRGNAM
+
mv $PKG/usr/share/doc $PKG/usr/
mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/${PRGNAM}-$VERSION
cd $PKG/usr/doc/${PRGNAM}-$VERSION/
gzip -dc changelog.gz > ChangeLog; rm -f changelog.gz;
-cp -a copyright LICENSE; rm -fv $PKG/usr/share/$PRGNAM/defaults/license.txt
+install -Dm644 copyright $PKG/usr/share/licenses/$PRGNAM/copyright
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install