summaryrefslogtreecommitdiff
path: root/multimedia/vivaldi-codecs-ffmpeg-extra/vivaldi-codecs-ffmpeg-extra.SlackBuild
diff options
context:
space:
mode:
authorAlexander Verbovetsky <alik@ejik.org>2017-08-10 07:47:15 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-08-12 06:58:31 +0700
commit5b88162410daf68f7eba3306c1e88a191225cb88 (patch)
treef2fe9bfe427b4e47e992edd3d41ae4dead2c55d6 /multimedia/vivaldi-codecs-ffmpeg-extra/vivaldi-codecs-ffmpeg-extra.SlackBuild
parentb578aaee594561dc1c13f22223e8a0a2fd0a66d9 (diff)
downloadslackbuilds-5b88162410daf68f7eba3306c1e88a191225cb88.tar.gz
multimedia/vivaldi-codecs-ffmpeg-extra: Updated for version 60.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/vivaldi-codecs-ffmpeg-extra/vivaldi-codecs-ffmpeg-extra.SlackBuild')
-rw-r--r--multimedia/vivaldi-codecs-ffmpeg-extra/vivaldi-codecs-ffmpeg-extra.SlackBuild55
1 files changed, 16 insertions, 39 deletions
diff --git a/multimedia/vivaldi-codecs-ffmpeg-extra/vivaldi-codecs-ffmpeg-extra.SlackBuild b/multimedia/vivaldi-codecs-ffmpeg-extra/vivaldi-codecs-ffmpeg-extra.SlackBuild
index 3c77247011..37fda0f205 100644
--- a/multimedia/vivaldi-codecs-ffmpeg-extra/vivaldi-codecs-ffmpeg-extra.SlackBuild
+++ b/multimedia/vivaldi-codecs-ffmpeg-extra/vivaldi-codecs-ffmpeg-extra.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for vivaldi-codecs-ffmpeg-extra.
#
# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2017, Alexander Verbovetsky, Moscow, Russia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="vivaldi-codecs-ffmpeg-extra"
-VERSION=${VERSION:-59.0.3071.104}
+VERSION=${VERSION:-60.0.3112.78}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -35,58 +36,34 @@ if [ -z "$ARCH" ]; then
esac
fi
+case "$ARCH" in
+ i?86) BITS="i386" ;;
+ x86_64) BITS="amd64" ;;
+ *) echo "$ARCH is not supported."
+ exit 1 ;;
+esac
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
- BITS="i686"
- echo "This package is currently only available for 64bit."
- exit 1
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
- BITS="i686"
- echo "This package is currently only available for 64bit."
- exit 1
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
- BITS="x86_64"
-else
- echo "Package for $(uname -m) architecture is not available."
- exit 1
-fi
-
-SRCNAM="vivaldi-ffmpeg-codecs"
-SRCVER=$VERSION-1
-
set -e
rm -rf $PKG $TMP/$PRGNAM
mkdir -p $TMP/$PRGNAM $PKG $OUTPUT
cd $TMP/$PRGNAM
-mkdir -p $PRGNAM-${VERSION}
-tar xvf $CWD/${SRCNAM}-${SRCVER}-${BITS}.pkg.tar.xz \
- --warning=no-unknown-keyword \
- --exclude={.PKGINFO,.BUILDINFO,.MTREE} -C $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 {} \;
+mkdir -p $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+
+ar p $CWD/chromium-codecs-ffmpeg-extra_${VERSION}-*_${BITS}.deb data.tar.xz \
+ | tar xJf - ./usr/lib/chromium-browser/libffmpeg.so --strip 4
-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
+strip --strip-unneeded libffmpeg.so 2> /dev/null
mkdir -p $PKG/opt/vivaldi/
-mv opt/vivaldi/libffmpeg.so $PKG/opt/vivaldi/
+install -m 0644 -o root -g root libffmpeg.so $PKG/opt/vivaldi/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild