Postsync update gentoo

This commit is contained in:
2026-10-31 05:00:23 +01:00
parent 221e1fb586
commit 4fdbf1e425
3 changed files with 149 additions and 0 deletions
+2
View File
@@ -37,3 +37,5 @@ DIST google-chrome-stable_151.0.7922.137-1_amd64.deb 140080344 BLAKE2B 7466e965f
DIST google-chrome-stable_151.0.7922.137-1_arm64.deb 132287036 BLAKE2B b9eb679af54e6cc4001db06cf6412d18da3be1b30ed3720d78c71043e400471061d7f79ba43f6ec06235b1b37d7d6de82736e6ae44f8b81eb3789f3d5b1ddba2 SHA512 e7170ca340c3a66916606a09416156b6fcda1b0f1f19ef5fef7c31f5f10e7dae381b80dcc2bb89cbf60b715b22309912887386effc25a2c12d14e769db06052d
DIST google-chrome-stable_156.0.8078.47-1_amd64.deb 144849192 BLAKE2B a401589aef8cbccc1a2f7adce44a83ca44338d95e241bf384ef2654e4a7456cb77169fd28c835cce1e3e8b8e30379cb692bf7d84aa2c3707d9ebcbb51e6df861 SHA512 ffd886eb17c3993aef9fe440a2ab56c7b82b95555c693eb81efe09eeb3cf308434a69293bec36b7e363f55d453925c1b2763c989b66d847df67e714ef237b3fc
DIST google-chrome-stable_156.0.8078.47-1_arm64.deb 136588320 BLAKE2B df690a06124bc7cd5bf80543d14e3ec83aa2496d8d037c492b7fcddd10193005c2e2eff005629e1a107175b5dbc44a3273d3416018b156899d72cc03a7d2acf4 SHA512 732099a8779c4389f7eb3605b2c624a3e659d3a0eeee8d225e80d48813d53468fdd8d5048f670b4d69eecb64e96c573f712f8eabd6d9e28386d4fa0ce0820486
DIST google-chrome-stable_156.0.8078.79-1_amd64.deb 145633696 BLAKE2B bda5895101716ca07952d87a05514c0561f96024cbc8542464c360508a152c855542d7077927173c66e14065d64f6c2aa26e047c7317e818d545ce4e6eec8a94 SHA512 68ea17afbc84d788ed9e1b6c2c16e979a5e5773b1ae6b6b30e4485d0c39547d7f3a74f028bc5e134cc1412c8534cfdf31b4f85e9f3016fc8b70430d768324315
DIST google-chrome-stable_156.0.8078.79-1_arm64.deb 137373656 BLAKE2B 34f75eb13a20ab24f7d9872109349f26e0804508bec3cfa2af26db7a338e50571ba5eb8625849c308d944f7cce84ba61809d65da0ebc3488b362db7343ec1e87 SHA512 6510cdee61b3ee83c352c460ceb47fedc4caae638dbb380c523d57ea396e02174ffa5073f1932f4108f8416b62482c4759f993e8ccddf3a268737729b8c00d16
@@ -0,0 +1,132 @@
# 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"
}