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

Signed-off-by: Matt Jolly <kangie@gentoo.org>
This commit is contained in:
Matt Jolly
2026-09-11 07:18:25 +10:00
parent c88158804f
commit 4b59ee094c
2 changed files with 0 additions and 134 deletions
@@ -1,5 +1,3 @@
DIST google-chrome-unstable_152.0.7953.3-1_amd64.deb 140356220 BLAKE2B 9358ad75421a8cf1372bc5a2234f610dee28ced2aadd4c28a5a7f41889f92364e106ba62f4975029685fe6ce92359c0e30ee0be9e2dbd7ef33e58a213451ec19 SHA512 f3bb6021ff4186e829b542e8a08b9890880e9a9a4d62119259a386f3d491273b853714cf98cf13a7d562028224dd3d3022d23149ab35f1efa58dcfdbd574c9c8
DIST google-chrome-unstable_152.0.7953.3-1_arm64.deb 132475352 BLAKE2B db3d4a68d6bd4318461183b334b428d6a92e69b5cb91d76e11f9a53dbe5706ad2ed1d22cbc3b3a5ac0d9053d510f6db9c247c9e8da5581d33c2bbd9ada59bb4d SHA512 d2530a7c2c77a745ec50213aea4c1f9a5084849b419d61ac4097b67fda19dd71e792907138da3df4a8d1c3d72538191c2a940ed2854d7c69592eb1890563ae27
DIST google-chrome-unstable_153.0.7993.0-1_amd64.deb 141131672 BLAKE2B 3b27b7548931fee5bc8806dd438e52024b3256ad9b6667134f63c18aa920de7a89f5770a35f1208171ad8dd63c24dbaa3fedeee12a80d90d808dc3d9770b855f SHA512 3d9820c8b3c3dd476807a64c69d6176decd0507ba78c1caff1755837783b523c513a5eeb08fe72c5984a33010979a3ceca86574395799b45ae64c2e5a1fffea2
DIST google-chrome-unstable_153.0.7993.0-1_arm64.deb 133263124 BLAKE2B 407b7b1868905060df2ecab388ecc445d439b15bd63b24a5115c59d59db76ece4ba0d4e732dbe135347b31951a93cbb79414270eabac5313a7f674425d5c9a93 SHA512 68cefa2a698adeb6007b48bdffd77c972d7b7996e2227a25e18770da0d439291ed7f4f3394e89c477d10dace0d74ddeea1fbb38eff69f7aeb70f88242d783f8b
DIST google-chrome-unstable_155.0.8040.2-1_amd64.deb 142445316 BLAKE2B b9b7ae3263b6264b687bad8d0cdb0848f79e6f3415b23ac12f16f602a3956e25ac076fd6e85b66a3c10494801ef959318b7d3178448528a33ea22f03aa57de8f SHA512 e51b3fd0459eb3e0f0abc8471dc2f84a2df4d959576f6b3599443cacc97cf4f69fd0990b8990bd449901cc4cf0bd7e5f12447407a37beca2f70b830d51017ba2
@@ -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"
}