www-client/google-chrome-beta: prune old versions

Signed-off-by: Matt Jolly <kangie@gentoo.org>
This commit is contained in:
Matt Jolly
2026-08-09 01:30:58 +10:00
parent 301fa3350f
commit 891ca527f3
2 changed files with 0 additions and 130 deletions
-1
View File
@@ -1,4 +1,3 @@
DIST google-chrome-beta_149.0.7827.53-1_amd64.deb 130395104 BLAKE2B e17eb9b3d002fd956b1cefc4e7c79f99930fdbfd8dce62740ef222445edc4619ff6a8d9d34693a090453537891ab06c79886199fc047f9333f95ba3e9531d329 SHA512 467434bc3908cb9e9dff56a0c27c931d533f12f2bc195096bcd8b37910d2dc21318bc70f871a602dc147c019f95e9813a0bdcf6f5b2f606adb84551953755581
DIST google-chrome-beta_150.0.7871.13-1_amd64.deb 133813604 BLAKE2B 8249ec9090dedb3993a62ef4151d1977e59c3a936381f828e333ea15ff2e14609df57c6875c7f0cc45f53bb2ee6ffa67ec03a3546dac82f6958ce089ba3b8ef8 SHA512 145c09614de58c6a31680a96ef5b611d55cb07916fdb09bd8f0e5adcf5078fdc85cb9cba954e525a5e94d122938f08f0da47c9c8ce54464f23ea4f1fe4ba9e4c
DIST google-chrome-beta_151.0.7922.47-1_amd64.deb 139917352 BLAKE2B 04f4bdfb482772ca704c19e28e2a85faef556bcfe4720d0687960f119fe7b62d2cee3fbe5a90020138b7c4e07758c76ab1c7621961779af431a37111927e11ed SHA512 1f435614fde3503f30b45f0a399089bb5e301eb608a65bd15c62481bbd25c01a2e35410c3567e53e8c8755d914396f456e7dd34c067aa2d0047549edb0d3b4f1
DIST google-chrome-beta_151.0.7922.47-1_arm64.deb 132217076 BLAKE2B fcc22b804cce8ece5dc69064c14840d9f64e51441f125d65e72ba57ddb2df02305f78c84f04b3d2ccf1b48af10d9fffcf7a7dcf1e7949f2827b5395f60ba32a8 SHA512 70e4ac6c415eca0c946080ee7cf002778df0130c57804456df8e487eba76047a716391487d03a53d730a5b9f4ce0c3f58ccc533c0d7d0ffd4901fda5c3102d1e
@@ -1,129 +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="https://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_amd64.deb"
S=${WORKDIR}
LICENSE="google-chrome"
SLOT="0"
KEYWORDS="-* ~amd64"
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 || die "google-chrome only works on amd64"
}
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"
}