2f9ae3dfa7
[ci skip] With the update to 78.0.3904.70, chromium now expects additional files and a new file system layout for the widevine component. This has been tested with Netflix and Amazon Prime.
24 lines
988 B
Text
24 lines
988 B
Text
# INSTALL
|
|
DISTFILE="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
|
|
BUILD_DIR="$PWD/var/tmp/$PKGNAME.build"
|
|
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
|
|
ar x $PKGNAME.deb
|
|
tar xf data.tar.xz --wildcards './opt/google/chrome/WidevineCdm/'
|
|
cd -
|
|
# 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
|
|
# Cleanup
|
|
rm -r $BUILD_DIR
|
|
;;
|
|
esac
|