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}
|
|
|
|
|
|
|
|
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
|
2012-12-12 13:46:06 +01:00
|
|
|
|
2011-04-03 10:53:19 +02:00
|
|
|
RELEASE=$CHANNEL ./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
|
|
|
|
|
|
|
rm google-chrome-${CHANNEL}_current_$DEBARCH.deb
|
2015-07-04 13:35:07 +02:00
|
|
|
|
|
|
|
/root/clean-tmp.sh
|