summaryrefslogtreecommitdiff
path: root/network/vivaldi/vivaldi.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/vivaldi/vivaldi.SlackBuild')
-rw-r--r--network/vivaldi/vivaldi.SlackBuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/network/vivaldi/vivaldi.SlackBuild b/network/vivaldi/vivaldi.SlackBuild
index fc237fd193..1de5ab1620 100644
--- a/network/vivaldi/vivaldi.SlackBuild
+++ b/network/vivaldi/vivaldi.SlackBuild
@@ -25,6 +25,7 @@
PRGNAM=vivaldi
VERSION=${VERSION:-2.2.1388.37}
+WIDEVINE_VERSION="4.10.1196.0"
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,8 +38,8 @@ if [ -z "$ARCH" ]; then
fi
case "$ARCH" in
- i?86) BITS="i386" ;;
- x86_64) BITS="amd64" ;;
+ i?86) BITS="i386" ; WIDEVINE_BITS="ia32" ;;
+ x86_64) BITS="amd64" ; WIDEVINE_BITS="x64" ;;
arm*) BITS="armhf" ;;
*) echo "$ARCH is not supported."
exit 1 ;;
@@ -56,6 +57,12 @@ mkdir -p $TMP/$PRGNAM $PKG $OUTPUT
cd $TMP/$PRGNAM
ar p $CWD/${PRGNAM}-stable_${VERSION}-*_${BITS}.deb data.tar.xz | tar xvJ
+if [ "x$BITS" = "xarmhf" ] ; then
+ echo "This script does not support Widevine on ARM."
+else
+ unzip -oq $CWD/${WIDEVINE_VERSION}-linux-${WIDEVINE_BITS}.zip \
+ libwidevinecdm.so -d opt/vivaldi
+fi
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \