diff options
author | Alexander Verbovetsky <alik@ejik.org> | 2019-11-01 06:16:39 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-11-01 06:16:39 +0700 |
commit | 3066c3735e298e53471350c9e25fcaea471cdfc2 (patch) | |
tree | 8b0126ece3699b4a732b7f2ee5186f74eba635fa /network/vivaldi | |
parent | 09ea9aa25427388219f48bf15a5652c316cdc400 (diff) |
network/vivaldi: Updated for version 2.9.1705.31.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/vivaldi')
-rw-r--r-- | network/vivaldi/README | 3 | ||||
-rw-r--r-- | network/vivaldi/doinst.sh | 3 | ||||
-rw-r--r-- | network/vivaldi/vivaldi.SlackBuild | 25 | ||||
-rw-r--r-- | network/vivaldi/vivaldi.info | 14 |
4 files changed, 30 insertions, 15 deletions
diff --git a/network/vivaldi/README b/network/vivaldi/README index bcb75575c699e..6654f9bad46ec 100644 --- a/network/vivaldi/README +++ b/network/vivaldi/README @@ -3,7 +3,4 @@ vivaldi (web browser). A Browser for Our Friends. An advanced browser made with the power user in mind. Finally you can surf your way. -pepperflash-plugin, ffmpeg, vivaldi-codecs-ffmpeg-extra are optional -dependencies. - Vivaldi for ARM can be downloaded at https://vivaldi.com/download/ diff --git a/network/vivaldi/doinst.sh b/network/vivaldi/doinst.sh index 65c7e2eeb9aa5..1a8085ae1083f 100644 --- a/network/vivaldi/doinst.sh +++ b/network/vivaldi/doinst.sh @@ -7,3 +7,6 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 fi fi + +rm -f /opt/vivaldi/libffmpeg.so +rm -f /opt/vivaldi/libwidevinecdm.so diff --git a/network/vivaldi/vivaldi.SlackBuild b/network/vivaldi/vivaldi.SlackBuild index 95906685810a9..5c9321f236d60 100644 --- a/network/vivaldi/vivaldi.SlackBuild +++ b/network/vivaldi/vivaldi.SlackBuild @@ -24,7 +24,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=vivaldi -VERSION=${VERSION:-2.8.1664.44} +VERSION=${VERSION:-2.9.1705.31} +FFMPEG_VERSION="77.0.3865.90" WIDEVINE_VERSION="4.10.1440.18" BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -38,8 +39,8 @@ if [ -z "$ARCH" ]; then fi case "$ARCH" in - i?86) BITS="i386" ; WIDEVINE_BITS="ia32" ;; - x86_64) BITS="amd64" ; WIDEVINE_BITS="x64" ;; + i?86) BITS="i386" ; WBITS="ia32" ; PBITS="x86" ;; + x86_64) BITS="amd64" ; WBITS="x64" ; PBITS="x64" ;; arm*) BITS="armhf" ;; *) echo "$ARCH is not supported." exit 1 ;; @@ -58,11 +59,19 @@ 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." + echo "This script doesn't support installing proprietary media codecs on ARM." else - unzip -oq $CWD/${WIDEVINE_VERSION}-linux-${WIDEVINE_BITS}.zip \ - libwidevinecdm.so -d opt/vivaldi + mkdir -p var/opt/vivaldi/WidevineCdm/_platform_specific/linux_${PBITS} + mkdir -p var/opt/vivaldi/media-codecs-${FFMPEG_VERSION} + ar p $CWD/chromium-codecs-ffmpeg-extra_${FFMPEG_VERSION}-*_${BITS}.deb \ + data.tar.xz | tar xJf - ./usr/lib/chromium-browser/libffmpeg.so --strip 4 + mv libffmpeg.so var/opt/vivaldi/media-codecs-${FFMPEG_VERSION} + unzip -oq $CWD/${WIDEVINE_VERSION}-linux-${WBITS}.zip \ + -d var/opt/vivaldi/WidevineCdm + mv var/opt/vivaldi/WidevineCdm/libwidevinecdm.so \ + var/opt/vivaldi/WidevineCdm/_platform_specific/linux_${PBITS} fi + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -71,12 +80,14 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; rm -r opt/vivaldi/cron -mv opt usr $PKG/ +rm -f opt/vivaldi/WidevineCdm +mv opt usr var $PKG/ 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 ln -sf /opt/vivaldi/vivaldi $PKG/usr/bin/vivaldi +ln -fs /var/opt/vivaldi/WidevineCdm $PKG/opt/vivaldi/WidevineCdm for res in 16 22 24 32 48 64 128 256; do install -Dm644 "$PKG/opt/vivaldi/product_logo_${res}.png" \ diff --git a/network/vivaldi/vivaldi.info b/network/vivaldi/vivaldi.info index 79dd58aaeaaa5..32b522093e89d 100644 --- a/network/vivaldi/vivaldi.info +++ b/network/vivaldi/vivaldi.info @@ -1,13 +1,17 @@ PRGNAM="vivaldi" -VERSION="2.8.1664.44" +VERSION="2.9.1705.31" HOMEPAGE="https://vivaldi.com" -DOWNLOAD="https://downloads.vivaldi.com/stable/vivaldi-stable_2.8.1664.44-1_i386.deb \ +DOWNLOAD="https://downloads.vivaldi.com/stable/vivaldi-stable_2.9.1705.31-1_i386.deb \ + http://launchpadlibrarian.net/443538022/chromium-codecs-ffmpeg-extra_77.0.3865.90-0ubuntu0.16.04.1_i386.deb \ https://dl.google.com/widevine-cdm/4.10.1440.18-linux-ia32.zip" -MD5SUM="8fba052ed67f9efa4b64be1bbc144b5b \ +MD5SUM="416132e9478cbd44fedb736dad983f4e \ + 02dad7608bfebddffd60e707386c4232 \ c151f6314712678ac81b6298bc36c997" -DOWNLOAD_x86_64="https://downloads.vivaldi.com/stable/vivaldi-stable_2.8.1664.44-1_amd64.deb \ +DOWNLOAD_x86_64="https://downloads.vivaldi.com/stable/vivaldi-stable_2.9.1705.31-1_amd64.deb \ + http://launchpadlibrarian.net/443497930/chromium-codecs-ffmpeg-extra_77.0.3865.90-0ubuntu0.16.04.1_amd64.deb \ https://dl.google.com/widevine-cdm/4.10.1440.18-linux-x64.zip" -MD5SUM_x86_64="1e80609ef6c527044c83bd1485a2e490 \ +MD5SUM_x86_64="b6900b68446882fda2799aa7636ebecf \ + be72ea71a96b400f6b824cb103b05dc8 \ fc6cf66cdff7c57d367b317505f086d1" REQUIRES="" MAINTAINER="Alexander Verbovetsky" |