blob: 1de5b28e00bb63110898f055746216327de74239 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
# Contributor: Daniel Bermond <dbermond@archlinux.org>
# Contributor: Det <nimetonmaili g-mail>
# check the latest version with:
# $ curl -sL https://dl.google.com/linux/earth/deb/dists/stable/main/binary-amd64/Packages | grep -Pom1 'Version: \K[^-]*'
pkgname=google-earth-pro
pkgver=7.3.6.9796
pkgrel=1
pkgdesc='3D interface to explore the globe, terrain, streets, buildings and other planets (Pro version)'
arch=('x86_64')
url='https://www.google.com/earth/'
license=('custom')
depends=(
'alsa-lib'
'desktop-file-utils'
'fontconfig'
'glu'
'gst-plugins-base-libs'
'hicolor-icon-theme'
'libcups'
'libsm'
'libproxy'
'libxi'
'libxrender'
'sqlite'
)
provides=('google-earth')
options=('!strip' '!emptydirs')
install="${pkgname}.install"
source=(
"https://dl.google.com/linux/earth/deb/pool/main/g/google-earth-pro-stable/google-earth-pro-stable_${pkgver}-r0_amd64.deb"
'Google-Terms-of-Service.html'::'https://www.google.com/intl/ALL/policies/terms/index.html'
'Google-Earth-Additional-Terms-of-Service.html'::'https://www.google.com/help/terms_maps.html'
'Legal-Notices-for-Google-Earth-and-Google-Earth-APIs.html'::'https://www.google.com/help/legalnotices_maps.html'
'Google-Privacy-Policy.html'::'https://www.google.com/intl/ALL/policies/privacy/index.html'
)
noextract=("google-earth-pro-stable_${pkgver}-r0_amd64.deb")
b2sums=(
'eed0dfcd75e6062faae6ca5331939e5e941fca5330c707e21bc2628ffa0d6fd96488d96b24acc0c78a7cc06c1ff06ae07cc31c51f5c75d040a063dd2bd368a26'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
_installdir='/opt/google/earth/pro'
prepare() {
mkdir -p "${pkgname}-${pkgver}"
bsdtar -xf "google-earth-pro-stable_${pkgver}-r0_amd64.deb" -C "${pkgname}-${pkgver}"
}
package() {
bsdtar -xf "${pkgname}-${pkgver}/data.tar.xz" -C "$pkgdir"
# desktop file
mv "${pkgdir}/${_installdir}/google-earth-pro.desktop" "${pkgdir}/usr/share/applications"
# icons
local _res
for _res in 16 22 24 32 48 64 128 256
do
install -D -m644 "${pkgdir}/${_installdir}/product_logo_${_res}.png" \
"${pkgdir}/usr/share/icons/hicolor/${_res}x${_res}/apps/google-earth-pro.png"
done
# remove the debian-intended cron job and duplicated images
rm -r "${pkgdir}/etc/cron.daily" "${pkgdir}/${_installdir}"/product_logo_*.png
# fix search
sed -i '/googleearth-bin/s/^/LC_NUMERIC=en_US.UTF-8 /' "${pkgdir}/${_installdir}/googleearth"
# licenses
local _file
for _file in 'Google-Terms-of-Service.html' \
'Google-Earth-Additional-Terms-of-Service.html' \
'Legal-Notices-for-Google-Earth-and-Google-Earth-APIs.html' \
'Google-Privacy-Policy.html'
do
install -D -m644 "$_file" "${pkgdir}/usr/share/licenses/${pkgname}/${_file}"
done
# Remove SGID
chmod -R 'a-s' "${pkgdir}"
}
|