From 425b2a9ddf581691473fd54c81bceb7d06d5ca4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Fri, 29 Mar 2024 11:13:36 +0100 Subject: [PATCH] feat: google chrome --- .../google-chrome/files/google-chrome-eula.md | 1 + srcpkgs/google-chrome/template | 33 +++++++++++++++++++ srcpkgs/google-chrome/update | 5 +++ 3 files changed, 39 insertions(+) create mode 100644 srcpkgs/google-chrome/files/google-chrome-eula.md create mode 100644 srcpkgs/google-chrome/template create mode 100644 srcpkgs/google-chrome/update diff --git a/srcpkgs/google-chrome/files/google-chrome-eula.md b/srcpkgs/google-chrome/files/google-chrome-eula.md new file mode 100644 index 0000000..1e2fba3 --- /dev/null +++ b/srcpkgs/google-chrome/files/google-chrome-eula.md @@ -0,0 +1 @@ +The current version of this EULA can be found at: https://www.google.com/intl/en/chrome/terms/ diff --git a/srcpkgs/google-chrome/template b/srcpkgs/google-chrome/template new file mode 100644 index 0000000..ca8ed33 --- /dev/null +++ b/srcpkgs/google-chrome/template @@ -0,0 +1,33 @@ +# Template file for 'google-chrome' +# Official template from https://github.com/void-linux/void-packages/blob/master/srcpkgs/google-chrome/template +pkgname=google-chrome +version=123.0.6312.58 +revision=1 +_channel=stable +archs="x86_64" +hostmakedepends="python3-html2text python3-setuptools" +depends="gtk+3" +short_desc="Attempt at creating a safer, faster, and more stable browser" +maintainer="Michael Aldridge " +license="custom:chrome" +homepage="https://www.google.com/chrome/" +distfiles="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-${_channel}_${version}-1_amd64.deb" +checksum=cfe502ef052c5805fb90f22093c4bdba35b69fa1e5529d26df31d3bec0224e9b + +skiprdeps="/opt/google/chrome/libqt5_shim.so /opt/google/chrome/libqt6_shim.so" +nostrip=yes + +do_install() { + vcopy etc / + vcopy opt / + vcopy usr / + + # Remove unused icons + rm ${DESTDIR}/opt/google/chrome/*.xpm + + # Remove the Debian/Ubuntu crontab + rm -rf ${DESTDIR}/etc + rm -rf ${DESTDIR}/opt/google/chrome/cron + + vlicense "${FILESDIR}"/google-chrome-eula.md +} diff --git a/srcpkgs/google-chrome/update b/srcpkgs/google-chrome/update new file mode 100644 index 0000000..9790f05 --- /dev/null +++ b/srcpkgs/google-chrome/update @@ -0,0 +1,5 @@ +# Call Google's version history API to get stable linux desktop releases +# that are still being served (endtime=none). Look for the 'version' in +# the JSON response. +site="https://versionhistory.googleapis.com/v1/chrome/platforms/linux/channels/stable/versions/all/releases?filter=endtime=none" +pattern="\"version\": *\"\K[\d.]+(?=\")"