slackbuilds/xap/google_chrome.sh

27 lines
678 B
Bash
Raw Normal View History

#!/bin/sh
2015-06-30 10:58:27 +02:00
BUILD_DIR=${BUILD_DIR:=/home/installs/mirrors/slackware64-current/extra/google-chrome}
ARCH=${ARCH:=$(uname -m)}
case $ARCH in
"i?86")
2016-12-16 09:40:45 +01:00
DEBARCH=i386
;;
"x86_64")
2016-12-16 09:40:45 +01:00
DEBARCH=amd64
;;
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
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