diff options
-rw-r--r-- | network/vivaldi/vivaldi.SlackBuild | 11 | ||||
-rw-r--r-- | network/vivaldi/vivaldi.info | 12 |
2 files changed, 17 insertions, 6 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 \ diff --git a/network/vivaldi/vivaldi.info b/network/vivaldi/vivaldi.info index 6386d93aa6..f45192cc9c 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" |