google-earth-pro 7.3.6.10441

Virtual globe

Не проверено
 1sfe_249_new_extractor=1
 2
 3name=google-earth-pro
 4version=7.3.6.10441
 5release=3
 6summary="Virtual globe"
 7group="Sciences/Geosciences"
 8desc="3D interface to explore the globe, terrain, streets, buildings and other planets"
 9maintainer="Maxim Slipenko <maks1ms@alt-gnome.ru>"
10architectures=("amd64")
11homepage="https://www.google.com/earth/"
12license=("custom")
13
14appstream_app_id=com.google.EarthPro
15
16nonfree=1
17nonfree_url="https://www.google.com/help/terms_maps.html"
18
19provides=(google-earth)
20conflicts=()
21
22firejailed=1
23firejail_profiles=(
24	['default']='firejail/aides-google-earth-pro.profile'
25)
26
27sources=(
28	"https://dl.google.com/linux/earth/rpm/stable/x86_64/google-earth-pro-stable-${version}-0.x86_64.rpm?~name=$name-$version.rpm"
29)
30
31checksums=(
32	sha256:93c4bd171da6eba9a3a0489cfcd40e66aaed4d912057ddaaa86426b32815df56
33)
34
35auto_reqprov_method=dirty
36auto_req=1
37auto_prov=1
38
39disable_network=1
40
41_installdir='/opt/google/earth/pro'
42
43prepare() {
44	_file="$name-$version.rpm"
45
46	if [ -f "$_file" ]; then
47		echo "Using rpm2cpio extraction"
48		rpm2cpio "$_file" | cpio -idm
49	else
50		echo "RPM already extracted"
51	fi
52}
53
54package() {
55	cp -dr usr opt "${pkgdir}"/
56
57	mkdir -p ${pkgdir}/usr/share/applications
58
59	# desktop file
60	mv "${pkgdir}${_installdir}/google-earth-pro.desktop" "${pkgdir}/usr/share/applications"
61
62	# icons
63	for _res in 16 22 24 32 48 64 128 256; do
64		install -D -m644 "${pkgdir}/${_installdir}/product_logo_${_res}.png" \
65			"${pkgdir}/usr/share/icons/hicolor/${_res}x${_res}/apps/google-earth-pro.png"
66	done
67
68	# remove duplicated images
69	rm "${pkgdir}/${_installdir}"/product_logo_*.png
70
71	# Remove SGID
72	chmod -R 'a-s' "${pkgdir}"
73}
74
75files() {
76	files-find-binary google-earth-pro
77
78	files-find \
79		"/usr/share/icons/hicolor/*/apps/${name}.png" \
80		"/usr/share/applications/*" \
81		"$_installdir" \
82		"$_installdir/**/*"
83}