summaryrefslogtreecommitdiffstats
path: root/network/opera/opera.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/opera/opera.SlackBuild')
-rw-r--r--network/opera/opera.SlackBuild23
1 files changed, 18 insertions, 5 deletions
diff --git a/network/opera/opera.SlackBuild b/network/opera/opera.SlackBuild
index 59cbe65529..c681ba2a51 100644
--- a/network/opera/opera.SlackBuild
+++ b/network/opera/opera.SlackBuild
@@ -1,8 +1,9 @@
-#!/bin/sh
+#!/bin/bash
#
# Slackware build script for opera.
#
-# Copyright 2016-2020 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2023-2024 Dimitris Zlatanidis, Orestiada, Greece.
+# Copyright 2016-2022 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +23,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=opera
-VERSION=${VERSION:-66.0.3515.27}
+VERSION=${VERSION:-109.0.5097.38}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +39,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -96,6 +107,8 @@ install -Dm644 $CWD/eula.html $PKG/usr/share/licenses/$PRGNAM/eula.html
install -Dm644 $CWD/terms.html $PKG/usr/share/licenses/$PRGNAM/terms.html
install -Dm644 $CWD/privacy.html $PKG/usr/share/licenses/$PRGNAM/privacy.html
+sed -i '/^TargetEnvironment/d' $PKG/usr/share/applications/$PRGNAM.desktop
+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
@@ -103,4 +116,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE