summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 8099b78a1e..894eb55a30 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 0000000000..380d9ccee9
--- /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 0000000000..3274e8a8f2
--- /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 31f0004750..94a207aa94 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