chrome.sh 630 Bytes
Newer Older
1 2
#!/bin/sh

3
PKGNAME=google-chrome-stable
4
SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6
DESCRIPTION="The popular and trusted web browser by Google (Stable Channel) from the official site"
7
URL="https://www.google.com/chrome/"
8

9
. $(dirname $0)/common.sh
10

11 12
arch=amd64
pkgtype=deb
13
_channel="stable"
14

15 16
warn_version_is_not_supported

17 18 19
if [ "$VERSION" = "*" ] ; then
    PKGURL="https://dl.google.com/linux/direct/google-chrome-stable_current_$arch.$pkgtype"
else
20 21
    VERSION="$VERSION-1"
    PKGURL="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-${_channel}/google-chrome-${_channel}_${VERSION}_$arch.$pkgtype"
22
fi
23

24
install_pkgurl