diff options
-rw-r--r-- | network/opera-legacy/README | 14 | ||||
-rw-r--r-- | network/opera-legacy/doinst.sh | 14 | ||||
-rw-r--r-- | network/opera-legacy/opera-legacy.SlackBuild | 97 | ||||
-rw-r--r-- | network/opera-legacy/opera-legacy.info | 10 | ||||
-rw-r--r-- | network/opera-legacy/slack-desc | 19 |
5 files changed, 154 insertions, 0 deletions
diff --git a/network/opera-legacy/README b/network/opera-legacy/README new file mode 100644 index 000000000000..6ddff4e6d0d8 --- /dev/null +++ b/network/opera-legacy/README @@ -0,0 +1,14 @@ +opera-legacy (Fast and secure web browser and Internet suite) + +opera-legacy is a small, fast, customizable, powerful, and +user-friendly web browser, as well as an Internet suite, including an +email client, IRC client, BiTorrent client and web developer tools +(Opera Dragonfly). + +This browser uses a old engine "Presto", for new engine "Blink please +see "opera" or "opera-developer" SlackBuilds. + +This is a old (and unmaintained) version of Opera browser, +USE AT YOUR OWN RISK! + +Optional dependencies: flashplayer-plugin, jdk or openjdk. diff --git a/network/opera-legacy/doinst.sh b/network/opera-legacy/doinst.sh new file mode 100644 index 000000000000..9830478e8cc7 --- /dev/null +++ b/network/opera-legacy/doinst.sh @@ -0,0 +1,14 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + diff --git a/network/opera-legacy/opera-legacy.SlackBuild b/network/opera-legacy/opera-legacy.SlackBuild new file mode 100644 index 000000000000..7092e1160086 --- /dev/null +++ b/network/opera-legacy/opera-legacy.SlackBuild @@ -0,0 +1,97 @@ +#!/bin/sh +# +# Slackware build script for opera-legacy. +# +# Copyright 2016 Edinaldo P. Silva, Rio de Janeiro, Brazil. +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=opera-legacy +VERSION=${VERSION:-12.16} +REVNO=${REVNO:-1860} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i686 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +SRCNAM="opera" + +set -e + +if [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" + OARCH=$ARCH +elif [ "$ARCH" = "i686" ]; then + LIBDIRSUFFIX="" + OARCH=i386 +else + printf "\n\n$ARCH is not supported...\n" + exit 1 +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-${VERSION}-${REVNO}.${OARCH}.linux +tar xf $CWD/$SRCNAM-${VERSION}-${REVNO}.${OARCH}.linux.tar.xz +mv $SRCNAM-${VERSION}-${REVNO}.${OARCH}.linux $PRGNAM-${VERSION} +cd $PRGNAM-${VERSION} +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +./install --name $PRGNAM \ + --prefix /usr \ + --repackage $PKG/usr + +if [ -n "$LIBDIRSUFFIX" ]; then + mv $PKG/usr/lib $PKG/usr/lib$LIBDIRSUFFIX + sed -i "s,/lib/,/lib$LIBDIRSUFFIX/," $PKG/usr/bin/$PRGNAM +fi + +mv $PKG/usr/share/{man,doc} $PKG/usr +mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/${PRGNAM}-$VERSION +if [ -f "$PKG/usr/doc/${PRGNAM}-$VERSION/LICENSE" ]; then + find $PKG/usr/share/$PRGNAM/{defaults,locale/en*} -name license.txt -type l -delete + mv $PKG/usr/doc/${PRGNAM}-$VERSION/LICENSE $PKG/usr/share/$PRGNAM/defaults/license.txt + ( cd $PKG/usr/doc/${PRGNAM}-$VERSION/ ; ln -s ../../share/$PRGNAM/defaults/license.txt LICENSE ) +fi + +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/opera-legacy/opera-legacy.info b/network/opera-legacy/opera-legacy.info new file mode 100644 index 000000000000..57fa39c614b4 --- /dev/null +++ b/network/opera-legacy/opera-legacy.info @@ -0,0 +1,10 @@ +PRGNAM="opera-legacy" +VERSION="12.16" +HOMEPAGE="http://www.opera.com" +DOWNLOAD="ftp://ftp.opera.com/pub/opera/linux/1216/opera-12.16-1860.i386.linux.tar.xz" +MD5SUM="08545c66ba00a568324b1a393c8782f7" +DOWNLOAD_x86_64="ftp://ftp.opera.com/pub/opera/linux/1216/opera-12.16-1860.x86_64.linux.tar.xz" +MD5SUM_x86_64="ead647964ace52f44ced98adbc568ae7" +REQUIRES="" +MAINTAINER="Edinaldo P. Silva" +EMAIL="edps.mundognu@gmail.com" diff --git a/network/opera-legacy/slack-desc b/network/opera-legacy/slack-desc new file mode 100644 index 000000000000..aad8d5b89048 --- /dev/null +++ b/network/opera-legacy/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +opera-legacy: opera-legacy (Fast and secure web browser and Internet suite) +opera-legacy: +opera-legacy: opera-legacy is a small, fast, customizable, powerful, and +opera-legacy: user-friendly web browser, as well as an Internet suite, including an +opera-legacy: email client, IRC client, BitTorrent client, web developer tools +opera-legacy: (Opera Dragonfly). +opera-legacy: +opera-legacy: Home page: http://www.opera-legacy.com/browser/ +opera-legacy: +opera-legacy: +opera-legacy: |