45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
# Template file for 'google-chrome'
|
|
pkgname=google-chrome
|
|
version=130.0.6723.116
|
|
revision=1
|
|
_channel=stable
|
|
archs="x86_64"
|
|
hostmakedepends="python3-html2text python3-setuptools"
|
|
depends="gtk+3"
|
|
short_desc="Attempt at creating a safer, faster, and more stable browser"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
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=1ef2cf8d0499938ce6417a31871ba3a16019f24d2a8af0b209d2e9071389e0e0
|
|
|
|
skiprdeps="/opt/google/chrome/libqt5_shim.so /opt/google/chrome/libqt6_shim.so"
|
|
repository=nonfree
|
|
restricted=yes
|
|
nostrip=yes
|
|
|
|
do_install() {
|
|
vcopy etc /
|
|
vcopy opt /
|
|
vcopy usr /
|
|
|
|
# Install the icons
|
|
for size in 16 24 32 48 64 128 256; do
|
|
# Create the google chrome xdg directory
|
|
mkdir -p ${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps
|
|
|
|
# Copy the google chrome icon
|
|
mv ${DESTDIR}/opt/google/chrome/product_logo_${size}.png \
|
|
${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps/google-chrome.png
|
|
done
|
|
|
|
# Remove unused icons
|
|
rm ${DESTDIR}/opt/google/chrome/*.xpm
|
|
|
|
# Remove the Debian/Ubuntu crontab
|
|
rm -rf ${DESTDIR}/etc
|
|
rm -rf ${DESTDIR}/opt/google/chrome/cron
|
|
|
|
vlicense "${FILESDIR}"/google-chrome-eula.md
|
|
}
|