google-chrome: don't download EULA

fixes #46347
This commit is contained in:
classabbyamp 2023-10-01 14:47:39 -04:00
parent 3defcea137
commit 2d90f29aca
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5
2 changed files with 3 additions and 12 deletions

View file

@ -0,0 +1 @@
The current version of this EULA can be found at: https://www.google.com/intl/en/chrome/terms/

View file

@ -1,7 +1,7 @@
# Template file for 'google-chrome'
pkgname=google-chrome
version=117.0.5938.132
revision=1
revision=2
_channel=stable
archs="x86_64"
hostmakedepends="python3-html2text python3-setuptools"
@ -12,22 +12,12 @@ 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=5976ecdc14e3f9ddbe48e2d490843c4075bbe223eb325eaa61d39cdadfd34215
_license_checksum=8023b18fb5118ef65d586363e53909861bd1a9676e5eb83c20fd3ac6e33ea0be
skiprdeps="/opt/google/chrome/libqt5_shim.so /opt/google/chrome/libqt6_shim.so"
repository=nonfree
restricted=yes
nostrip=yes
post_extract() {
$XBPS_FETCH_CMD 'https://www.google.com/intl/en/chrome/terms/' -o google-chrome-eula.html
html2text google-chrome-eula.html | sed -n '/^#/,/^SEE/p' > google-chrome-eula.md
filesum="$(xbps-digest google-chrome-eula.md)"
if [ "$filesum" != "$_license_checksum" ]; then
msg_error "SHA256 mismatch for EULA:\n$filesum\n"
fi
}
do_install() {
vcopy etc /
vcopy opt /
@ -50,5 +40,5 @@ do_install() {
rm -rf ${DESTDIR}/etc
rm -rf ${DESTDIR}/opt/google/chrome/cron
vlicense google-chrome-eula.md
vlicense "${FILESDIR}"/google-chrome-eula.md
}