chromium-widevine: update to 132.0.6834.83.
This commit is contained in:
parent
a66556872f
commit
187211b311
@ -1,27 +1,35 @@
|
||||
# INSTALL
|
||||
|
||||
checksum=b429124b27f9b5ff3a63229823af0d4200020698eb58b75027897ba5b5e327eb
|
||||
checksum=aae7efee6ee243cc97e9678d6a34db3c42c299186be061816bc5b3cbe88c1618
|
||||
|
||||
_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")"
|
||||
_distfile="${_baseUrl}/${_filename}"
|
||||
|
||||
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"
|
||||
_builddir="$(mktemp -d "${TMPDIR:-/tmp}/$PKGNAME.XXXXXX")"
|
||||
mkdir -p "${_builddir}"
|
||||
|
||||
xbps-uhelper fetch "${_distfile}>${_builddir}/${PKGNAME}.deb"
|
||||
|
||||
# Verify that the archive is as expected
|
||||
if [ "$(xbps-digest "${BUILD_DIR}/${PKGNAME}.deb")" != "${checksum}" ]; then
|
||||
echo "broken file: $_filename"
|
||||
if ! _digest="$(xbps-digest "${_builddir}/${PKGNAME}.deb")"; then
|
||||
echo "failed to compute checksum for file ${_filename}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "${_digest}" != "${checksum}" ]; then
|
||||
echo "checksum mismatch for file ${_filename}"
|
||||
echo " expected ${checksum}"
|
||||
echo " found ${_digest}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Attempt to unpack the archive
|
||||
(
|
||||
cd "${BUILD_DIR}" && \
|
||||
ar x "${PKGNAME}.deb" && \
|
||||
cd "${_builddir}" && ar x "${PKGNAME}.deb" && \
|
||||
tar xf data.tar.xz --wildcards './opt/google/chrome/WidevineCdm/'
|
||||
) || exit 1
|
||||
|
||||
@ -31,13 +39,13 @@ post)
|
||||
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
|
||||
mv "${_builddir}/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 "${_builddir}"
|
||||
;;
|
||||
esac
|
||||
|
@ -2,7 +2,7 @@
|
||||
#
|
||||
# Keep in sync with 'chromium'!
|
||||
pkgname=chromium-widevine
|
||||
version=116.0.5845.96
|
||||
version=132.0.6834.83
|
||||
revision=1
|
||||
archs="x86_64"
|
||||
create_wrksrc=yes
|
||||
|
Loading…
x
Reference in New Issue
Block a user