chromium-widevine: update to 116.0.5845.96.
This commit is contained in:
parent
581bf9fcef
commit
f5cc5a158e
@ -1,32 +1,43 @@
|
||||
# INSTALL
|
||||
|
||||
checksum=7dfe9285ff6ee8bff7621a68bf66d33dbe016ee3769a20b52397bafa49345745
|
||||
checksum=b429124b27f9b5ff3a63229823af0d4200020698eb58b75027897ba5b5e327eb
|
||||
_baseUrl="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable"
|
||||
_filename="google-chrome-stable_${VERSION%_*}-1_amd64.deb"
|
||||
DISTFILE="${_baseUrl}/${_filename}"
|
||||
BUILD_DIR="$(mktemp -d ${TMPDIR:-/tmp}/$PKGNAME.XXXXXX)"
|
||||
BUILD_DIR="$(mktemp -d "${TMPDIR:-/tmp}/$PKGNAME.XXXXXX")"
|
||||
|
||||
case "$ACTION" in
|
||||
post)
|
||||
# Actions to execute before the package files are unpacked.
|
||||
mkdir -p $BUILD_DIR
|
||||
xbps-uhelper fetch "${DISTFILE}>$BUILD_DIR/$PKGNAME.deb"
|
||||
# Things that have to happen no matter what
|
||||
cd $BUILD_DIR
|
||||
if [ "$(xbps-digest "$PKGNAME.deb")" != $checksum ]; then
|
||||
mkdir -p "${BUILD_DIR}"
|
||||
xbps-uhelper fetch "${DISTFILE}>${BUILD_DIR}/${PKGNAME}.deb"
|
||||
|
||||
# Verify that the archive is as expected
|
||||
if [ "$(xbps-digest "${BUILD_DIR}/${PKGNAME}.deb")" != "${checksum}" ]; then
|
||||
echo "broken file: $_filename"
|
||||
exit 1
|
||||
fi
|
||||
ar x $PKGNAME.deb
|
||||
tar xf data.tar.xz --wildcards './opt/google/chrome/WidevineCdm/'
|
||||
cd -
|
||||
|
||||
# Attempt to unpack the archive
|
||||
(
|
||||
cd "${BUILD_DIR}" && \
|
||||
ar x "${PKGNAME}.deb" && \
|
||||
tar xf data.tar.xz --wildcards './opt/google/chrome/WidevineCdm/'
|
||||
) || exit 1
|
||||
|
||||
# Remove previous components
|
||||
rm -fr /usr/lib/chromium/WidevineCdm /usr/lib/chromium/libwidevinecdm.so
|
||||
# Move new components
|
||||
mv $BUILD_DIR/opt/google/chrome/WidevineCdm /usr/lib/chromium/
|
||||
ln -s /usr/lib/chromium/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so /usr/lib/chromium/libwidevinecdm.so
|
||||
[ ! -d /usr/lib/chromium-dev ] && mkdir /usr/lib/chromium-dev
|
||||
ln -s /usr/lib/chromium/WidevineCdm /usr/lib/chromium-dev/WidevineCdm
|
||||
mkdir -p usr/lib/chromium
|
||||
rm -rf usr/lib/chromium/WidevineCdm
|
||||
rm -f usr/lib/chromium-dev/WidevineCdm usr/lib/chromium/libwidevinecdm.so
|
||||
|
||||
# Install new components
|
||||
mv "${BUILD_DIR}/opt/google/chrome/WidevineCdm" usr/lib/chromium
|
||||
ln -Ts WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so usr/lib/chromium/libwidevinecdm.so
|
||||
|
||||
mkdir -p usr/lib/chromium-dev
|
||||
ln -Ts ../chromium/WidevineCdm usr/lib/chromium-dev/WidevineCdm
|
||||
|
||||
# Cleanup
|
||||
rm -r $BUILD_DIR
|
||||
rm -r "${BUILD_DIR}"
|
||||
;;
|
||||
esac
|
||||
|
@ -1,5 +1,9 @@
|
||||
case "$ACTION" in
|
||||
pre)
|
||||
rm -f usr/lib/chromium/libwidevine*
|
||||
rm -rf usr/lib/chromium/WidevineCdm
|
||||
rm -f usr/lib/chromium-dev/WidevineCdm usr/lib/chromium/libwidevinecdm.so
|
||||
|
||||
rmdir usr/lib/chromium || true
|
||||
rmdir usr/lib/chromium-dev || true
|
||||
;;
|
||||
esac
|
||||
|
@ -1,19 +1,15 @@
|
||||
# Template file for 'chromium-widevine'
|
||||
#
|
||||
# Keep in sync with 'chromium'!
|
||||
#
|
||||
_chromeVersion="current"
|
||||
_channel="stable"
|
||||
|
||||
pkgname=chromium-widevine
|
||||
version=109.0.5414.119
|
||||
version=116.0.5845.96
|
||||
revision=1
|
||||
archs="x86_64"
|
||||
create_wrksrc=yes
|
||||
depends="chromium binutils xz"
|
||||
short_desc="Browser plugin designed for the viewing of premium video content"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="custom:chrome"
|
||||
depends="chromium binutils xz"
|
||||
homepage="https://www.google.com/chrome"
|
||||
repository=nonfree
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user