2011-04-03 10:53:19 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-06-30 10:58:27 +02:00
|
|
|
BUILD_DIR=${BUILD_DIR:=/home/installs/mirrors/slackware64-current/extra/google-chrome}
|
2011-04-03 10:53:19 +02:00
|
|
|
|
|
|
|
ARCH=${ARCH:=$(uname -m)}
|
|
|
|
case $ARCH in
|
|
|
|
"i?86")
|
2016-12-16 09:40:45 +01:00
|
|
|
DEBARCH=i386
|
|
|
|
;;
|
2011-04-03 10:53:19 +02:00
|
|
|
"x86_64")
|
2016-12-16 09:40:45 +01:00
|
|
|
DEBARCH=amd64
|
|
|
|
;;
|
2011-04-03 10:53:19 +02:00
|
|
|
esac
|
|
|
|
CHANNEL=${CHANNEL:=stable}
|
|
|
|
|
2018-12-20 22:39:08 +01:00
|
|
|
#cd $BUILD_DIR
|
2015-07-04 13:30:57 +02:00
|
|
|
[ -e google-chrome-${CHANNEL}_current_$ARCH.deb ] && rm google-chrome-${CHANNEL}_current_$DEBARCH.deb
|
|
|
|
wget -c --no-check-certificate https://dl.google.com/linux/direct/google-chrome-${CHANNEL}_current_$DEBARCH.deb
|
2018-12-20 22:39:08 +01:00
|
|
|
cp $BUILD_DIR/google-chrome.SlackBuild .
|
2012-12-12 13:46:06 +01:00
|
|
|
|
2021-12-02 11:14:12 +01:00
|
|
|
RELEASE=$CHANNEL BUILD=1gwh ./google-chrome.SlackBuild
|
2011-04-03 11:57:05 +02:00
|
|
|
|
2016-12-16 09:40:45 +01:00
|
|
|
upgradepkg --install-new --reinstall /tmp/google-chrome-*-$ARCH-*.txz
|
2015-07-04 13:30:57 +02:00
|
|
|
|
2021-12-02 11:14:12 +01:00
|
|
|
sed -i "s|Exec=/usr/bin/google-chrome\([a-z-]*\)|Exec=/usr/bin/google-chrome\1 --enable-features=UseOzonePlatform --ozone-platform=wayland|g" /usr/share/applications/google-chrome.desktop
|
|
|
|
|
2018-12-20 22:39:08 +01:00
|
|
|
rm google-chrome.SlackBuild google-chrome-${CHANNEL}_current_$DEBARCH.deb
|
2015-07-04 13:35:07 +02:00
|
|
|
|
2018-09-02 09:14:14 +02:00
|
|
|
#/root/clean-tmp.sh
|