aboutsummaryrefslogtreecommitdiff
path: root/multimedia/opera-ffmpeg-codecs/opera-ffmpeg-codecs.SlackBuild
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2017-02-07 23:39:01 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-02-11 07:24:29 +0700
commit0d85cc7638f0a610910678acaf09f4b76260dd7b (patch)
tree2e023af265f3b47dd87c7201e4fe1634649ba9a4 /multimedia/opera-ffmpeg-codecs/opera-ffmpeg-codecs.SlackBuild
parent21a0ccb08700e527d7f80ef2f1b883777451253b (diff)
multimedia/opera-ffmpeg-codecs: Updated for version 56.0.2924.76.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'multimedia/opera-ffmpeg-codecs/opera-ffmpeg-codecs.SlackBuild')
-rw-r--r--multimedia/opera-ffmpeg-codecs/opera-ffmpeg-codecs.SlackBuild21
1 files changed, 9 insertions, 12 deletions
diff --git a/multimedia/opera-ffmpeg-codecs/opera-ffmpeg-codecs.SlackBuild b/multimedia/opera-ffmpeg-codecs/opera-ffmpeg-codecs.SlackBuild
index fdf9416697a6..da1699e21b23 100644
--- a/multimedia/opera-ffmpeg-codecs/opera-ffmpeg-codecs.SlackBuild
+++ b/multimedia/opera-ffmpeg-codecs/opera-ffmpeg-codecs.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for opera-ffmpeg-codecs.
#
-# Copyright 2016 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2016-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="opera-ffmpeg-codecs"
-VERSION=${VERSION:-55.0.2883.87}
+VERSION=${VERSION:-56.0.2924.76}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,15 +43,15 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
- BITS="i386"
+ BITS="i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
- BITS="i386"
+ BITS="i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
- BITS="amd64"
+ BITS="x86_64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -59,15 +59,15 @@ fi
set -e
-SRCNAM="chromium-codecs-ffmpeg-extra"
-SRCVER=${SRCVER:-55.0.2883.87-0ubuntu0.16.04.1263}
+SRCVER=$VERSION-1
rm -rf $PKG $TMP/$PRGNAM
mkdir -p $TMP/$PRGNAM $PKG $OUTPUT
cd $TMP/$PRGNAM
mkdir -p $PRGNAM-${VERSION}
-ar p $CWD/${SRCNAM}_${SRCVER}_${BITS}.deb data.tar.xz | xz -dv | tar -xf- -C $PRGNAM-${VERSION}
+tar xvf $CWD/${PRGNAM}-${SRCVER}-${BITS}.pkg.tar.xz \
+ --exclude={.PKGINFO,.BUILDINFO,.MTREE} -C $PRGNAM-${VERSION}
cd $PRGNAM-${VERSION}
chown -R root:root .
find -L . \
@@ -80,12 +80,9 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/opera/lib_extra
-mv usr/lib/chromium-browser/libffmpeg.so $PKG/usr/lib${LIBDIRSUFFIX}/opera/lib_extra/
+mv usr/lib/opera/lib_extra/libffmpeg.so $PKG/usr/lib${LIBDIRSUFFIX}/opera/lib_extra/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-gzip -dc usr/share/doc/chromium-codecs-ffmpeg-extra/changelog.Debian.gz > \
-$PKG/usr/doc/$PRGNAM-$VERSION/ChangeLog
-cp -a usr/share/doc/chromium-codecs-ffmpeg-extra/copyright $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install