chromium-widevine: update to 132.0.6834.83.

This commit is contained in:
Andrew J. Hesford 2025-01-21 13:24:41 -05:00
parent a66556872f
commit 187211b311
2 changed files with 20 additions and 12 deletions

View file

@ -1,27 +1,35 @@
# INSTALL # INSTALL
checksum=b429124b27f9b5ff3a63229823af0d4200020698eb58b75027897ba5b5e327eb checksum=aae7efee6ee243cc97e9678d6a34db3c42c299186be061816bc5b3cbe88c1618
_baseUrl="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable" _baseUrl="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable"
_filename="google-chrome-stable_${VERSION%_*}-1_amd64.deb" _filename="google-chrome-stable_${VERSION%_*}-1_amd64.deb"
DISTFILE="${_baseUrl}/${_filename}" _distfile="${_baseUrl}/${_filename}"
BUILD_DIR="$(mktemp -d "${TMPDIR:-/tmp}/$PKGNAME.XXXXXX")"
case "$ACTION" in case "$ACTION" in
post) post)
# Actions to execute before the package files are unpacked. # Actions to execute before the package files are unpacked.
mkdir -p "${BUILD_DIR}" _builddir="$(mktemp -d "${TMPDIR:-/tmp}/$PKGNAME.XXXXXX")"
xbps-uhelper fetch "${DISTFILE}>${BUILD_DIR}/${PKGNAME}.deb" mkdir -p "${_builddir}"
xbps-uhelper fetch "${_distfile}>${_builddir}/${PKGNAME}.deb"
# Verify that the archive is as expected # Verify that the archive is as expected
if [ "$(xbps-digest "${BUILD_DIR}/${PKGNAME}.deb")" != "${checksum}" ]; then if ! _digest="$(xbps-digest "${_builddir}/${PKGNAME}.deb")"; then
echo "broken file: $_filename" 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 exit 1
fi fi
# Attempt to unpack the archive # Attempt to unpack the archive
( (
cd "${BUILD_DIR}" && \ cd "${_builddir}" && ar x "${PKGNAME}.deb" && \
ar x "${PKGNAME}.deb" && \
tar xf data.tar.xz --wildcards './opt/google/chrome/WidevineCdm/' tar xf data.tar.xz --wildcards './opt/google/chrome/WidevineCdm/'
) || exit 1 ) || exit 1
@ -31,13 +39,13 @@ post)
rm -f usr/lib/chromium-dev/WidevineCdm usr/lib/chromium/libwidevinecdm.so rm -f usr/lib/chromium-dev/WidevineCdm usr/lib/chromium/libwidevinecdm.so
# Install new components # 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 ln -Ts WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so usr/lib/chromium/libwidevinecdm.so
mkdir -p usr/lib/chromium-dev mkdir -p usr/lib/chromium-dev
ln -Ts ../chromium/WidevineCdm usr/lib/chromium-dev/WidevineCdm ln -Ts ../chromium/WidevineCdm usr/lib/chromium-dev/WidevineCdm
# Cleanup # Cleanup
rm -r "${BUILD_DIR}" rm -r "${_builddir}"
;; ;;
esac esac

View file

@ -2,7 +2,7 @@
# #
# Keep in sync with 'chromium'! # Keep in sync with 'chromium'!
pkgname=chromium-widevine pkgname=chromium-widevine
version=116.0.5845.96 version=132.0.6834.83
revision=1 revision=1
archs="x86_64" archs="x86_64"
create_wrksrc=yes create_wrksrc=yes