From: fsLeg Date: Sun, 9 Jun 2019 11:38:37 +0000 (+0300) Subject: Removed Opera since it's available on SBo X-Git-Url: https://git.t-rg.ws/?a=commitdiff_plain;h=cc2897ea1157eaaa8a4dbbb048ffe3546cec0637;p=slackbuilds.git Removed Opera since it's available on SBo --- diff --git a/opera/README b/opera/README deleted file mode 100644 index 3d4ac89..0000000 --- a/opera/README +++ /dev/null @@ -1,30 +0,0 @@ -Opera is the fastest and free (as in free beer) alternative browser. - -This is a unified SlackBuild that can make packages for all three Opera flavors: -stable, beta and developer. By default stable version is built. If you want -other flavor, specify it in the FLAVOR variable. Possible values: "stable", -"beta" and "developer". Don't forget to adjust VERSION variable accordingly. - -This package makes use of AlienBOB's chromium-pepperflash-plugin package. If you -have it installed, you'll have Adobe FlashPlayer. - -WARNING: Due to changes in Chromium, Opera 31 and up doesn't support ffmpeg -libraries aside from the one compiled using Chromium sources. The bundled -libffmpeg.so doesn't support proprietary media formats (H.264, MP3, AAC), -but due to a bug the browser reports that it does which may lead to problems -with websites that serve proprietary formats first. - -By default Opera can only play WebM and Ogg Vorbis files in HTML5. To make it -play other formats as well you need FFmpeg libraries of specific version. If you -already have FFmpeg installed and it works with Opera, all is good. If not, you -can specify FFMPEG=yes to build local libraries that work with Opera. It is safe -for your FFmpeg installation, if you have one. - -Sometimes different flavors of Opera require different FFmpeg versions. If -the flavor you chose doesn't support FFmpeg version in the SlackBuild, you -can specify a different version using FFMPEG_VERSION variable, i. e. -FFMPEG_VERSION=2.4.2 - -For now there's only 64bit version available. - -WARNING: this package (stable flavor) conflicts with classic Opera from SBo. diff --git a/opera/opera.SlackBuild b/opera/opera.SlackBuild deleted file mode 100755 index 86dfe06..0000000 --- a/opera/opera.SlackBuild +++ /dev/null @@ -1,187 +0,0 @@ -#!/bin/sh - -# Slackware build script for Opera (Stable, Beta and Developer flavors) - -# Copyright 2014 Vladislav Borisov Moscow, Russia -# 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. - -# If your want to make a different flavor of Opera, change this variable. -# The valid choices are: "stable", "stable" and "developer". -FLAVOR=-${FLAVOR:-stable} - -# You can build local version of ffmpeg if you want H.264 and MP3 decoding support -FFMPEG=${FFMPEG:-no} -FFMPEG_VERSION=${FFMPEG_VERSION:-2.6.3} - -PRGNAM_BASE=opera -PRGNAM=${PRGNAM_BASE}${FLAVOR} -VERSION=${VERSION:-32.0.1948.25} -BUILD=${BUILD:-1} -TAG=${TAG:-fsleg} - -# Use parallel building if possible -if [ -z "$NUMJOBS" ]; then - NUMJOBS=$(nproc) -fi - -# Automatically determine the architecture we're building on: -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) ARCH=$( uname -m ) ;; - esac -fi - -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" - BITS="i686" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" - BITS="i686" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" - BITS="amd64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -build_ffmpeg() { - FFMPEG_SRC="http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2" - FFMPEG_DIR="/usr/lib${LIBDIRSUFFIX}/opera${FLAVOR}/ffmpeg" - mkdir ffmpeg-build - cd ffmpeg-build - wget ${FFMPEG_SRC} - tar xfjv ffmpeg-${FFMPEG_VERSION}.tar.bz2 - cd ffmpeg-${FFMPEG_VERSION} - - CFLAGS="$SLKCFLAGS" \ - CXXFLAGS="$SLKCFLAGS" \ - ./configure \ - --prefix=${FFMPEG_DIR} \ - --libdir=${FFMPEG_DIR} \ - --shlibdir=${FFMPEG_DIR} \ - --arch=${ARCH} \ - --disable-static \ - --enable-shared \ - --disable-programs \ - --disable-doc \ - --disable-debug \ - --disable-encoders \ - --disable-muxers \ - --disable-filters \ - --extra-ldflags="-Wl,-rpath,${FFMPEG_DIR},-enable-new-dtags" - make -j${NUMJOBS} - make DESTDIR=${PKG} install - - # Remove not needed files - rm -rf ${PKG}${FFMPEG_DIR}/{pkgconfig,include} - - # Add path to ffmpeg libs to launcher - sed -i "s/PATH_TO_FFMPEG/$(echo ${FFMPEG_DIR} | sed 's/\//\\\//g')/" ${PKG}/usr/bin/opera${FLAVOR} -} - -# Exit on most errors -set -e - -rm -rf $PKG $TMP/$PRGNAM -mkdir -p $TMP/$PRGNAM $PKG $OUTPUT - -cd $TMP/$PRGNAM -ar p $CWD/${PRGNAM}_${VERSION}_${BITS}.deb data.tar.xz | tar xvJ -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 {} \; - -# opera-stable isn't actually called like that within the package -if [ "-stable" = "${FLAVOR}" ]; then - FLAVOR="" -fi - -# Move libs to a more apropriate place -mkdir -p usr/lib${LIBDIRSUFFIX} -mv usr/lib/x86_64-linux-gnu/opera${FLAVOR} usr/lib${LIBDIRSUFFIX}/ -rm -rf usr/lib/x86_64-linux-gnu - -# opera_sandbox requires suid -chmod 4755 usr/lib${LIBDIRSUFFIX}/opera${FLAVOR}/opera_sandbox - -# Fix .desktop file -sed -i 's/TargetEnvironment/X-TargetEnvironment/g' usr/share/applications/opera${FLAVOR}.desktop - -# Remove unneeded stuff -rm -rf usr/share/{lintian,menu} - -# Add support for the alienBOB's chromium-pepperflash package -mkdir -p etc/default -cat $CWD/opera.conf > etc/default/opera${FLAVOR} - -# Add apropriate launcher -rm -rf usr/bin/opera${FLAVOR} -cat $CWD/opera.sh > usr/bin/opera${FLAVOR} -sed -i "s/_LIBDIRSUFFIX_/${LIBDIRSUFFIX}/" \ - usr/bin/opera${FLAVOR} \ - etc/default/opera${FLAVOR} -chmod 755 usr/bin/opera${FLAVOR} - -# Move everything to $PKG -mv usr etc $PKG/ - -if [ "yes" = "${FFMPEG}" ]; then - build_ffmpeg -else - sed -i 's/PATH_TO_FFMPEG\://' ${PKG}/usr/bin/opera${FLAVOR} -fi - -# Strip binaries and libraries -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -# Copy program documentation into the package -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -mv $PKG/usr/share/doc/$PRGNAM/copyright $PKG/usr/doc/$PRGNAM-$VERSION/ -zcat $PKG/usr/share/doc/$PRGNAM/changelog.gz > $PKG/usr/doc/$PRGNAM-$VERSION/changelog -rm -rf $PKG/usr/share/doc -cat $CWD/$PRGNAM_BASE.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -# Copy the slack-desc into ./install -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -# Change Opera flavor in some files -sed -i "s/opera_FLAVOR_/opera${FLAVOR}/g" $PKG/usr/bin/opera${FLAVOR} \ - $PKG/etc/default/opera${FLAVOR} -sed -i "s/opera_FLAVOR_/${PRGNAM}/g" $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz} diff --git a/opera/opera.conf b/opera/opera.conf deleted file mode 100644 index abc96d5..0000000 --- a/opera/opera.conf +++ /dev/null @@ -1,17 +0,0 @@ -# Default settings for opera_FLAVOR_. -# This file is sourced by /usr/bin/opera_FLAVOR_ - -# Options to pass to opera_FLAVOR_ -OPERA_FLAGS="" - - -# START chromium-pepperflash-plugin -flashso="/usr/lib_LIBDIRSUFFIX_/PepperFlash/libpepflashplayer.so" - -if [ -f $flashso ] -then - flashversion=$(strings $flashso|grep ^LNX|sed -e "s/^LNX //"|sed -e "s/,/./g") - OPERA_FLAGS="$OPERA_FLAGS --ppapi-flash-path=$flashso --ppapi-flash-version=$flashversion" -fi -# END chromium-pepperflash-plugin - diff --git a/opera/opera.info b/opera/opera.info deleted file mode 100644 index 6a36979..0000000 --- a/opera/opera.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="opera-stable" -VERSION="32.0.1948.25" -HOMEPAGE="http://www.opera.com/" -DOWNLOAD="UNSUPPORTED" -MD5SUM="" -DOWNLOAD_x86_64="http://get.geo.opera.com/pub/opera/desktop/${VERSION}/linux/opera-stable_${VERSION}_amd64.deb" -MD5SUM_x86_64="e68c4b2ed49b68d53a24f7e00dc21648" -REQUIRES="" -MAINTAINER="Vladislav Borisov" -EMAIL="fsleg@t-rg.ws" diff --git a/opera/opera.sh b/opera/opera.sh deleted file mode 100755 index 9860c36..0000000 --- a/opera/opera.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -# Allow users to override command-line options -# Based on Gentoo's chromium package (and by extension, Debian's) -if [[ -f /etc/default/opera_FLAVOR_ ]]; then - . /etc/default/opera_FLAVOR_ -fi - -# Prefer user defined OPERA_USER_FLAGS (from env) over system -# default OPERA_FLAGS (from /etc/default/opera_FLAVOR_) -OPERA_FLAGS=${OPERA_USER_FLAGS:-$OPERA_FLAGS} - -export CHROME_WRAPPER=$(readlink -f "$0") -export CHROME_DESKTOP=opera_FLAVOR_.desktop - -# Use ffmpeg libs -export LD_LIBRARY_PATH="PATH_TO_FFMPEG:${LD_LIBRARY_PATH}" - -exec /usr/lib_LIBDIRSUFFIX_/opera_FLAVOR_/opera_FLAVOR_ $OPERA_FLAGS "$@" - diff --git a/opera/slack-desc b/opera/slack-desc deleted file mode 100644 index aefa939..0000000 --- a/opera/slack-desc +++ /dev/null @@ -1,11 +0,0 @@ -opera_FLAVOR_: Opera (web browser) -opera_FLAVOR_: -opera_FLAVOR_: Opera is the fastest and free (as in free beer) -opera_FLAVOR_: alternative browser. -opera_FLAVOR_: -opera_FLAVOR_: Website: http://www.opera.com/ -opera_FLAVOR_: -opera_FLAVOR_: -opera_FLAVOR_: -opera_FLAVOR_: -opera_FLAVOR_: