17 lines
574 B
Text
17 lines
574 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/libwidevine*'
|
|
cd -
|
|
mv $BUILD_DIR/opt/google/chrome/libwidevine* usr/lib/chromium
|
|
rm -r $BUILD_DIR
|
|
;;
|
|
esac
|