www-client/google-chrome: prune old versions

Signed-off-by: Matt Jolly <kangie@gentoo.org>
This commit is contained in:
Matt Jolly
2026-08-19 07:50:04 +10:00
parent 4f47eaad6b
commit b4ca7a2d86
2 changed files with 0 additions and 134 deletions

View File

@@ -1,5 +1,3 @@
DIST google-chrome-stable_150.0.7871.181-1_amd64.deb 133533368 BLAKE2B 51e6439799cb72db5cf31be36b7b11cbf728fcec1f7d7119016df657da7e8d395f5290098f399d97c0a3018751e8a9ea1bfde87b1e59d8e008d1aa2f4f3ceb68 SHA512 2b42f58b1501bf6e8226fd6098a5e06587f9a388fb89cd936980368ef50294ea18f9a61cd19c04796d71c308e4be46eaddcec1b67332f45eac75fdaf8d81d7cc
DIST google-chrome-stable_150.0.7871.181-1_arm64.deb 126135068 BLAKE2B 38a38e89999ae46dc7094b056517beb0b054e0e311f3b4c97c3c83d6d47c530a15f8aee8cca12927a0daa51b2aa90cb8c383914e72564b3463761155a6527d89 SHA512 6c0b68873ff78497a01969aab4e8ae18c3933337536b042af7a02cd66965c2d1547e02ddf50fc910b59832e6d5c4a684ae9a61a2583e6a668dfe9974c7765ef3
DIST google-chrome-stable_151.0.7922.108-1_amd64.deb 140087076 BLAKE2B 640cc2939da9fe02984e3977c0de6a73a2e8e9e01939d916a119c15782f0418ae480b317ce570ef634835f39624538f82e4516aabc5500cd829e18f4570380a4 SHA512 4d6430a203bd6ce38eb6431dac70be9354ab9c59d8c74a6de8a1085d7e53a9e4bc8707097e64f08b52d7e6b329c6d955fa0854cf479beaa8ba9a5c97ddf75351
DIST google-chrome-stable_151.0.7922.108-1_arm64.deb 132186044 BLAKE2B 7f0ad1d763108eb39231dec15e42d5eb8bbad290b2852fe8686d8b0877b17bac0161e32746f08677be805509dd402fccf75151f9c8c053abb3bfb65a279a69bd SHA512 53cd86827a5ab2310e3fde62c8fb8430c79f87b468a8233bee2e3abe762defe54da363b559785c7e0c120b87212c600b489b7b86e4a49edce46eb39e5bc42e60
DIST google-chrome-stable_151.0.7922.137-1_amd64.deb 140080344 BLAKE2B 7466e965ff0b109ac8afbf909a47dcafa2fe2adc81819a1c3ea2fc057bc6226083e04d7643a2778d7a60ad77ecb510a8665fe3dd6997a02bcb226cc470ae4712 SHA512 1d6bb6aa793d3646605c0bb346e800d306f76ee8d30f5bcbe920a2d70ee90fbdb1203cd1552e26e21e243af8bbdc8d461c8ca49249b77a5f92533396606c1cd7

View File

@@ -1,132 +0,0 @@
# Copyright 2011-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CHROMIUM_LANGS="af am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr
sv sw ta te th tr uk ur vi zh-CN zh-TW"
inherit chromium-2 desktop pax-utils unpacker xdg
DESCRIPTION="The web browser from Google"
HOMEPAGE="https://www.google.com/chrome/"
if [[ ${PN} == google-chrome ]]; then
MY_PN=${PN}-stable
else
MY_PN=${PN}
fi
MY_P="${MY_PN}_${PV}-1"
SRC_URI="
amd64? ( https://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_amd64.deb )
arm64? ( https://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_arm64.deb )
"
S=${WORKDIR}
LICENSE="google-chrome"
SLOT="0"
KEYWORDS="-* amd64 arm64"
IUSE="qt6 selinux"
RESTRICT="bindist mirror strip"
RDEPEND="
>=app-accessibility/at-spi2-core-2.46.0:2
app-misc/ca-certificates
dev-libs/expat
dev-libs/glib:2
dev-libs/nspr
>=dev-libs/nss-3.26
media-fonts/liberation-fonts
media-libs/alsa-lib
media-libs/mesa[gbm(+)]
net-misc/curl
net-print/cups
sys-apps/dbus
sys-libs/glibc
sys-libs/libcap
x11-libs/cairo
x11-libs/gdk-pixbuf:2
|| (
x11-libs/gtk+:3[X]
gui-libs/gtk:4[X]
)
x11-libs/libdrm
>=x11-libs/libX11-1.5.0
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXrandr
x11-libs/libxcb
x11-libs/libxkbcommon
x11-libs/libxshmfence
x11-libs/pango
x11-misc/xdg-utils
qt6? ( dev-qt/qtbase:6[gui,widgets] )
selinux? ( sec-policy/selinux-chromium )
"
QA_PREBUILT="*"
QA_DESKTOP_FILE="usr/share/applications/google-chrome.*\\.desktop"
CHROME_HOME="opt/google/chrome${PN#google-chrome}"
pkg_nofetch() {
eerror "Please wait 24 hours and sync your tree before reporting a bug for google-chrome fetch failures."
}
pkg_pretend() {
# Protect against people using autounmask overzealously
use amd64 || use arm64 || die "${PN} only works on supported architectures (amd64, arm64)."
}
pkg_setup() {
chromium_suid_sandbox_check_kernel_config
}
src_unpack() {
:
}
src_install() {
dodir /
cd "${ED}" || die
unpacker
mv usr/share/doc/${MY_PN} usr/share/doc/${PF} || die
# Since M141 Google Chrome comes with its own bundled cron
# scripts which invoke `apt` directly. Useless on Gentoo!
rm -r etc/cron.daily || die "Failed to remove cron scripts"
rm -r "${CHROME_HOME}"/cron || die "Failed to remove cron scripts"
gzip -d usr/share/doc/${PF}/changelog.gz || die
gzip -d usr/share/man/man1/${MY_PN}.1.gz || die
if [[ -L usr/share/man/man1/google-chrome.1.gz ]]; then
rm usr/share/man/man1/google-chrome.1.gz || die
dosym ${MY_PN}.1 usr/share/man/man1/google-chrome.1
fi
pushd "${CHROME_HOME}/locales" > /dev/null || die
chromium_remove_language_paks
popd > /dev/null || die
rm "${CHROME_HOME}/libqt5_shim.so" || die
if ! use qt6; then
rm "${CHROME_HOME}/libqt6_shim.so" || die
fi
local suffix=
[[ ${PN} == google-chrome-beta ]] && suffix=_beta
[[ ${PN} == google-chrome-unstable ]] && suffix=_dev
local size
for size in 16 24 32 48 64 128 256 ; do
newicon -s ${size} "${CHROME_HOME}/product_logo_${size}${suffix}.png" ${PN}.png
done
pax-mark m "${CHROME_HOME}/chrome"
}