aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAntonio Leal <antonioleal@yahoo.com>2023-12-04 18:50:56 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-12-04 19:26:03 +0700
commit9eeaf60f4472ece68e2b51f11b9f0cb0f57638dd (patch)
treebae02179223d2ba16d4f17bd52198b65f524a73e /system
parent48d56d12779b2d658576f53030ca1f83559e4755 (diff)
system/google-chrome-the-latest: Updated for version 3.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/google-chrome-the-latest/README56
-rw-r--r--system/google-chrome-the-latest/doinst.sh13
-rw-r--r--system/google-chrome-the-latest/google-chrome-the-latest.SlackBuild26
-rw-r--r--system/google-chrome-the-latest/google-chrome-the-latest.info8
4 files changed, 65 insertions, 38 deletions
diff --git a/system/google-chrome-the-latest/README b/system/google-chrome-the-latest/README
index 89b91b21c6dbd..e744739e3fafe 100644
--- a/system/google-chrome-the-latest/README
+++ b/system/google-chrome-the-latest/README
@@ -1,37 +1,47 @@
-Installing *and* Maintaining an updated chrome browser on Slackware
-is now made easier with this small program, "google-chrome-the-latest".
+Maintaining an updated Chrome Browser on Slackware is now made
+easier with this small program, "google-chrome-the-latest".
It is a simple python script that checks what is the latest
-version available and updates it on your Slackware box directly
-from Google.
+version available and updates it on your Slackware box.
-It does this by parsing the web-page at
+It identifies a new version by parsing the web-page at
https://www.whatismybrowser.com/guides/the-latest-version/chrome
-and comparing with the chrome version currently installed.
-
-Chrome is downloaded directly from Google and converted to txz
-using the standard rpm2txz command.
+and comparing with the chrome version number currently installed.
+Chrome is then downloaded directly from Google site, converted to
+txz using the standard rpm2txz command, and upgraded.
You can run this script manually or automatically with the
-provided cron.hourly script.
-This cron script will attempt to identify which user to notify,
-otherwise you can force the variable to USERNAME=’your username’
+provided cron.hourly script. The cron script will attempt to
+identify which user to notify, otherwise you can edit it and set
+the variable USERNAME='your username'
In order to avoid excessive hits on whatismybrowser.com actual
checks are limited to "once a day", but you can bypass this with the
-arguments "install" or "upgrade". These allow the user to force a
-download from Google and perforam an install or an upgrade,
-if one is required.
+arguments "install", "upgrade" or "update". These all mean then
+same and imply a download from Google and perform an install or
+an upgrade, if one is required of course.
Normally it is asked if you want to install the new version, but
providing the argument "silent" will just update with no
human intervention.
+The argument "gui" will download the Chrome RPM allowing you to
+manually upgrade the browser.
+
+Note: This program runs in the background. To collect your input,
+dialogs appear and disappear. Don't be alarmed and wait for the
+program to end.
+
+Workflows:
+
+1. Every day the program checks if a new browser is available
+ and notifies you through a pop-up window. This is default behavior.
-Examples:
-If you don't have yet Chrome installed you can do so by
-simply by running:
-/opt/google-chrome-the-latest/google-chrome-the-latest.py install
+2. You can start the program manually using the icon available
+ in the desktop menu to trigger the download, check and
+ install/upgrade the browse if required.
-At any time you can force a download from Google site and upgrade
-without any pop-up window with:
-/opt/google-chrome-the-latest/google-chrome-the-latest.py silent upgrade
+3. From the command line, if you don't have yet Chrome installed
+ you can do so by simply by running:
+ /opt/google-chrome-the-latest/google-chrome-the-latest.py install
-This package installs to /opt/google-chrome-the-latest
+4. From the command line, you can force a Chrome download and
+ upgrade if required, without any pop-up window, with:
+ /opt/google-chrome-the-latest/google-chrome-the-latest.py silent upgrade
diff --git a/system/google-chrome-the-latest/doinst.sh b/system/google-chrome-the-latest/doinst.sh
new file mode 100644
index 0000000000000..9b51b160f673f
--- /dev/null
+++ b/system/google-chrome-the-latest/doinst.sh
@@ -0,0 +1,13 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/gnome/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/gnome >/dev/null 2>&1
+ fi
+fi
diff --git a/system/google-chrome-the-latest/google-chrome-the-latest.SlackBuild b/system/google-chrome-the-latest/google-chrome-the-latest.SlackBuild
index e44d8c9b6c8ff..b38f4352ed77a 100644
--- a/system/google-chrome-the-latest/google-chrome-the-latest.SlackBuild
+++ b/system/google-chrome-the-latest/google-chrome-the-latest.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=google-chrome-the-latest
-VERSION=${VERSION:-2.0.1}
+VERSION=${VERSION:-3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -76,25 +76,29 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-PKGOPT=$PKG/opt/google-chrome-the-latest
-rm -rf $PKGOPT
-mkdir -p $PKGOPT
-cp google-chrome-the-latest.py $PKGOPT
-chmod +x $PKGOPT/google-chrome-the-latest.py
-cp permission-dialog.glade $PKGOPT
-cp end-dialog.glade $PKGOPT
-cp google-chrome-the-latest.png $PKGOPT
+rm -rf $PKG/opt/google-chrome-the-latest
+mkdir -p $PKG/opt/google-chrome-the-latest
+cp google-chrome-the-latest.py $PKG/opt/google-chrome-the-latest
+chmod +x $PKG/opt/google-chrome-the-latest/google-chrome-the-latest.py
+cp *.glade $PKG/opt/google-chrome-the-latest
+cp google-chrome-the-latest.png $PKG/opt/google-chrome-the-latest
+cp google-chrome-the-latest.desktop $PKG/opt/google-chrome-the-latest
-rm -rf $PKG/etc/cron.hourly
-mkdir -p $PKG/etc/cron.hourly
+rm -rf $PKG/etc/cron.hourly $PKG/usr/share/pixmaps $PKG/usr/share/applications
+mkdir -p $PKG/etc/cron.hourly $PKG/usr/share/pixmaps $PKG/usr/share/applications
cp google-chrome-the-latest-cron.sh $PKG/etc/cron.hourly
chmod +x $PKG/etc/cron.hourly/google-chrome-the-latest-cron.sh
+cp google-chrome-the-latest.png $PKG/usr/share/pixmaps
+cp google-chrome-the-latest.desktop $PKG/usr/share/applications
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cp README $PKG/usr/doc/$PRGNAM-$VERSION
+cp LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/google-chrome-the-latest/google-chrome-the-latest.info b/system/google-chrome-the-latest/google-chrome-the-latest.info
index 301c0bd92b274..e1c1e259556de 100644
--- a/system/google-chrome-the-latest/google-chrome-the-latest.info
+++ b/system/google-chrome-the-latest/google-chrome-the-latest.info
@@ -1,10 +1,10 @@
PRGNAM="google-chrome-the-latest"
-VERSION="2.0.1"
+VERSION="3.1"
HOMEPAGE="https://github.com/antonioleal/google-chrome-the-latest"
-DOWNLOAD="https://github.com/antonioleal/google-chrome-the-latest/archive/2.0.1/google-chrome-the-latest-2.0.1.tar.gz"
-MD5SUM="a7db4e683620e0471874030e64966785"
+DOWNLOAD="https://github.com/antonioleal/google-chrome-the-latest/archive/3.1/google-chrome-the-latest-3.1.tar.gz"
+MD5SUM="d1c1abd33c8871ca8c2b932b62e54be6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="gksu"
MAINTAINER="Antonio Leal"
EMAIL="antonioleal@yahoo.com"