Google Chrome 151.0.7922.108

Браузер, созданный для вас

Не проверено
 1name=google-chrome-stable
 2version=151.0.7922.108
 3release=1
 4group="Networking/WWW"
 5summary="The popular web browser by Google (Stable Channel)"
 6architectures=('amd64')
 7homepage="https://www.google.com/chrome"
 8maintainer="Maxim Slipenko <maks1ms@alt-gnome.ru>"
 9license=('Multiple, see https://chrome.google.com/')
10appstream_app_id='com.google.Chrome'
11nonfree=1
12nonfree_url="https://www.google.com/chrome/terms/"
13
14_channel=stable
15
16sources=(
17	"https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-${_channel}/google-chrome-${_channel}_${version}-1_amd64.deb"
18	"local:///eula_text.html"
19)
20
21checksums=(
22	sha256:bfb6e6d345055eb481a50db423256fa2732ce010f785a56c327e213a638efdef
23	sha256:e93c01576427cad9099f2cf0df0be70d0a2cc0a3a66c743318b2138aa7c4ed93
24)
25
26build_deps=(
27	bsdtar
28	binutils
29)
30
31auto_reqprov_method=dirty
32auto_req=1
33auto_prov=1
34
35disable_network=1
36
37prepare() {
38	bsdtar -xf data.tar.xz -C "$pkgdir/"
39}
40
41package() {
42	# Icons
43	for i in 16x16 24x24 32x32 48x48 64x64 128x128 256x256; do
44		install -Dm644 "$pkgdir"/opt/google/chrome/product_logo_${i/x*/}.png \
45			"$pkgdir"/usr/share/icons/hicolor/$i/apps/google-chrome.png
46	done
47
48	# License
49	install-license eula_text.html google-chrome-$_channel/eula_text.html
50	install-license "$pkgdir"/opt/google/chrome/WidevineCdm/LICENSE \
51		google-chrome-$_channel/WidevineCdm-LICENSE.txt
52
53	# Fix the Chrome desktop entry
54	sed -i \
55		-e "/Exec=/i\StartupWMClass=Google-chrome" \
56		-e "s/x-scheme-handler\/ftp;\?//g" \
57		"$pkgdir"/usr/share/applications/com.google.Chrome.desktop
58
59	# Remove the Debian Cron job, duplicate product logos and menu directory
60	rm -r \
61		"$pkgdir"/etc/cron.daily/ \
62		"$pkgdir"/opt/google/chrome/cron/ \
63		"$pkgdir"/opt/google/chrome/product_logo_*.png
64}
65
66files() {
67	files-find-binary google-chrome-$_channel
68
69	files-find-desktop \
70		com.google.Chrome.desktop \
71		google-chrome.desktop
72
73	files-find-doc google-chrome-$_channel
74
75	files-find \
76		"/opt/google/**/*" \
77		"/usr/share/appdata/*" \
78		"/usr/share/gnome-control-center/default-apps/*" \
79		"/usr/share/icons/hicolor/*/apps/*" \
80		"/usr/share/licenses/**/*" \
81		"/usr/share/man/man1/*"
82}