summaryrefslogtreecommitdiffstats
path: root/chromium-widevine-plugin
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-07-24 11:26:31 +0000
committer Eric Hameleers <alien@slackware.com>2016-07-24 11:26:31 +0000
commit03550a3ea0eff67788e6ce14916160f4f6a957da (patch)
treefb1e195ba3b1df48e36c95f6df33f130564e8319 /chromium-widevine-plugin
parent1aca7b0209680fe530bea657d3f83da8df2013b9 (diff)
downloadasb-03550a3ea0eff67788e6ce14916160f4f6a957da.tar.gz
asb-03550a3ea0eff67788e6ce14916160f4f6a957da.tar.xz
chromium-widevine-plugin: updated to 52.0.2743.82 (widevine 1.4.8.893). Also updated the 32bit plugin to 48.0.2564.116 which is the last version available (also using an archive download URL for its .deb package)
Diffstat (limited to 'chromium-widevine-plugin')
-rwxr-xr-xchromium-widevine-plugin/build/chromium-widevine-plugin.SlackBuild30
1 files changed, 24 insertions, 6 deletions
diff --git a/chromium-widevine-plugin/build/chromium-widevine-plugin.SlackBuild b/chromium-widevine-plugin/build/chromium-widevine-plugin.SlackBuild
index ff78936f..5af9a8fe 100755
--- a/chromium-widevine-plugin/build/chromium-widevine-plugin.SlackBuild
+++ b/chromium-widevine-plugin/build/chromium-widevine-plugin.SlackBuild
@@ -129,6 +129,10 @@
# 51.0.2704.84-1:
# 08/jun/2016 by Eric Hameleers <alien@slackware.com>
# * Update (only 64bit).
+# 52.0.2743.82-1:
+# 24/jul/2016 by Eric Hameleers <alien@slackware.com>
+# * Update (only 64bit). Added the version of the last 32bit
+# plugin as well.
#
# Run 'sh chromium-widevine-plugin.SlackBuild' to build a Slackware package.
# The package (.txz) and .txt file as well as build logs are created in /tmp .
@@ -143,10 +147,13 @@ PRGNAM=chromium-widevine-plugin
BUILD=${BUILD:-1}
TAG=${TAG:-alien}
+# What is the last version of Chrome to contain a 32bit plugin?
+VERSION32="48.0.2564.116"
+
# What is the Chrome version we extract this from?
# Version of the plugin as reported by the browser is determined in the
# chromium package. Check "chrome://plugins"
-VERSION=${VERSION:-"51.0.2704.84"}
+VERSION=${VERSION:-"52.0.2743.82"}
RPMCHAN=${RPMCHAN:-"stable"}
RPMSUB=${RPMSUB:-"-1"}
@@ -172,6 +179,9 @@ case "$MARCH" in
LIBDIRSUFFIX=""
ARCHBITS="32"
export ARCH=i386
+ # Hardcode the version to the last 32bit available:
+ echo "** Pinning Chrome version to the most recent 32bit: '$VERSION32'"
+ VERSION="$VERSION32"
;;
*)
echo "Unsupported architecture '$ARCH'"
@@ -179,9 +189,13 @@ case "$MARCH" in
;;
esac
-SOURCE[0]="$SRCDIR/google-chrome-$RPMCHAN-$VERSION$RPMSUB.$ARCH.rpm"
-SRCURL[0]="https://dl.google.com/linux/chrome/rpm/stable/$ARCH/google-chrome-$RPMCHAN-$VERSION$RPMSUB.$ARCH.rpm"
-
+if [ "$ARCH" = "x86_64" ]; then
+ SOURCE[0]="$SRCDIR/google-chrome-$RPMCHAN-$VERSION$RPMSUB.$ARCH.rpm"
+ SRCURL[0]="https://dl.google.com/linux/chrome/rpm/stable/$ARCH/google-chrome-$RPMCHAN-$VERSION$RPMSUB.$ARCH.rpm"
+else
+ SOURCE[0]="$SRCDIR/google-chrome-${RPMCHAN}_${VERSION32}${RPMSUB}_${ARCH}.deb"
+ SRCURL[0]="http://mirror.retrosnub.co.uk/apt/google/pool/main/g/google-chrome-stable/google-chrome-${RPMCHAN}_${VERSION32}${RPMSUB}_${ARCH}.deb"
+fi
SOURCE[1]="$SRCDIR/license.html"
SRCURL[1]="http://www.google.com/chrome/intl/en/eula_text.html"
@@ -240,8 +254,12 @@ fi
cd $TMP/tmp-$PRGNAM
echo "Extracting the source archive(s) for $PRGNAM..."
-rpm2cpio ${SOURCE[0]} | cpio -dimv -R root:root \
- ./opt/google/chrome/libwidevinecdm.so
+if file ${SOURCE[0]} | grep -q RPM ; then
+ rpm2cpio ${SOURCE[0]} | cpio -dimv -R root:root \
+ ./opt/google/chrome/libwidevinecdm.so
+else
+ ar p ${SOURCE[0]} data.tar.xz | tar xJv ./opt/google/chrome/libwidevinecdm.so
+fi
chmod -R u+w,go+r-w,a+X-s .
echo "++"