aboutsummaryrefslogtreecommitdiff
path: root/network/vivaldi
diff options
context:
space:
mode:
authorAlexander Verbovetsky <alik@ejik.org>2018-12-29 05:03:27 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-12-29 05:03:27 +0700
commit5ff4c18778d8cf45a6d900efc407a15db18f9e5a (patch)
tree69696d4a6cc4aed115f37131c4b53ed65a24c3dc /network/vivaldi
parent23fc5890e2f542137af79f817f0706e53c2590dd (diff)
network/vivaldi: Updated for version 2.2.1388.37.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/vivaldi')
-rw-r--r--network/vivaldi/vivaldi.SlackBuild11
-rw-r--r--network/vivaldi/vivaldi.info12
2 files changed, 17 insertions, 6 deletions
diff --git a/network/vivaldi/vivaldi.SlackBuild b/network/vivaldi/vivaldi.SlackBuild
index fc237fd1935a..1de5ab162047 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 \
diff --git a/network/vivaldi/vivaldi.info b/network/vivaldi/vivaldi.info
index 6386d93aa6a8..f45192cc9c82 100644
--- a/network/vivaldi/vivaldi.info
+++ b/network/vivaldi/vivaldi.info
@@ -1,10 +1,14 @@
PRGNAM="vivaldi"
VERSION="2.2.1388.37"
HOMEPAGE="https://vivaldi.com"
-DOWNLOAD="https://downloads.vivaldi.com/stable/vivaldi-stable_2.2.1388.37-1_i386.deb"
-MD5SUM="96352dc2e2b19d9badf9f23f8165469d"
-DOWNLOAD_x86_64="https://downloads.vivaldi.com/stable/vivaldi-stable_2.2.1388.37-1_amd64.deb"
-MD5SUM_x86_64="0700a373336e117508774f7e08922a1b"
+DOWNLOAD="https://downloads.vivaldi.com/stable/vivaldi-stable_2.2.1388.37-1_i386.deb \
+ https://dl.google.com/widevine-cdm/4.10.1196.0-linux-ia32.zip"
+MD5SUM="96352dc2e2b19d9badf9f23f8165469d \
+ d3c080472cee2a74e85d24ba538795d8"
+DOWNLOAD_x86_64="https://downloads.vivaldi.com/stable/vivaldi-stable_2.2.1388.37-1_amd64.deb \
+ https://dl.google.com/widevine-cdm/4.10.1196.0-linux-x64.zip"
+MD5SUM_x86_64="0700a373336e117508774f7e08922a1b \
+ 6f36d46184187f0f0ca5d93436dc4436"
REQUIRES=""
MAINTAINER="Alexander Verbovetsky"
EMAIL="alik@ejik.org"