slackbuilds/xap/google_chrome.sh
Gwenhael Le Moine a4f8f9bb2f
don't erase package
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2018-09-02 09:14:14 +02:00

26 lines
678 B
Bash
Executable file

#!/bin/sh
BUILD_DIR=${BUILD_DIR:=/home/installs/mirrors/slackware64-current/extra/google-chrome}
ARCH=${ARCH:=$(uname -m)}
case $ARCH in
"i?86")
DEBARCH=i386
;;
"x86_64")
DEBARCH=amd64
;;
esac
CHANNEL=${CHANNEL:=stable}
cd $BUILD_DIR
[ -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
upgradepkg --install-new --reinstall /tmp/google-chrome-*-$ARCH-*.txz
rm google-chrome-${CHANNEL}_current_$DEBARCH.deb
#/root/clean-tmp.sh