blob: 0f4c35545cf273a6c7a6e06a20ac461c5727f2b0 (
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
87
88
|
# Maintainer: Det <nimetonmaili g-mail>
# Contributors: 458italia, Madek, Berseker, Syr
# Check the latest version with:
# $ curl -sL https://dl.google.com/linux/earth/deb/dists/stable/main/binary-amd64/Packages | grep -Pom1 "Version: \K[^-]*"
# Attempt to fix crashes and blank Panoramio: "1" to enable.
# - http://forums.fedoraforum.org/showthread.php?p=1678303#post1678303
_attempt_fix=0
pkgname=google-earth
pkgver=7.1.8.3036
pkgrel=1
pkgdesc="A 3D interface to view satellite images of Earth and other objects"
arch=('i686' 'x86_64')
url="https://www.google.com/earth/index.html"
license=('custom:earth')
depends=('desktop-file-utils' 'fontconfig' 'glu' 'hicolor-icon-theme' 'ld-lsb>=3-5'
'libgl' 'libsm' 'libxrender' 'mesa' 'shared-mime-info' 'xdg-utils')
[[ $_attempt_fix = 1 ]] && depends+=('freeimage' 'libpng15' 'qtwebkit')
optdepends=('catalyst-utils: For AMD Catalyst'
'nvidia-utils: For the NVIDIA driver')
options=('!emptydirs')
install=$pkgname.install
source=('googleearth.sh'
'baifaao.cpp'
'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')
source_i686=("google-earth-stable_${pkgver}_i386.deb::https://dl.google.com/earth/client/current/google-earth-stable_current_i386.deb")
source_x86_64=("google-earth-stable_${pkgver}_amd64.deb::https://dl.google.com/earth/client/current/google-earth-stable_current_amd64.deb")
md5sums=('e84f5d51ea3545c131d1794f89f6464a'
'598d579a1c3199c77850d86ba78f7b44'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
md5sums_i686=('bf6ccc911ce09a9ec5dc0e6ee98e92d5')
md5sums_x86_64=('77cb0eacde195c224767a77ccf54c8ef')
_instdir=/opt/google/earth/free/
# Build the baifaao.so
if [[ $_attempt_fix = 1 ]]; then
build() {
gcc -I /usr/include/qt4/ -O3 -fPIC --shared baifaao.cpp -o baifaao.so
}
fi
package() {
msg2 "Extracting the data.tar.xz..."
bsdtar -xf data.tar.xz -C "$pkgdir/"
msg2 "Moving stuff in place..."
# The .desktop
mv "$pkgdir"/$_instdir/google-earth.desktop "$pkgdir"/usr/share/applications/
# Icons
for i in 16 22 24 32 48 64 128 256; do
install -Dm644 "$pkgdir"/$_instdir/product_logo_$i.png \
"$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/google-earth.png
done
# Licenses
install -Dm644 'Google-Terms-of-Service.html' \
"$pkgdir/usr/share/licenses/$pkgname/Google-Terms-of-Service.html"
install -Dm644 'Google-Earth-Additional-Terms-of-Service.html' \
"$pkgdir/usr/share/licenses/$pkgname/Google-Earth-Additional-Terms-of-Service.html"
install -Dm644 'Legal-Notices-for-Google-Earth-and-Google-Earth-APIs.html' \
"$pkgdir/usr/share/licenses/$pkgname/Legal-Notices-for-Google-Earth-and-Google-Earth-APIs.html"
install -Dm644 'Google-Privacy-Policy.html' \
"$pkgdir/usr/share/licenses/$pkgname/Google-Privacy-Policy.html"
msg2 "Removing the Debian-intended cron job and duplicated images..."
rm -r "$pkgdir"/etc/cron.daily/ "$pkgdir"/$_instdir/product_logo_*.png
if [[ $_attempt_fix = 1 ]]; then
msg2 "Attempting a fix on Panoramio and certain crashes..."
# Install baifaao.so
install -m755 baifaao.so "$pkgdir"/$_instdir/
# Preload it
install -m755 googleearth.sh "$pkgdir"/$_instdir/googleearth
# Remove the old, bundled Qt libs
rm "$pkgdir"/$_instdir/libQt*
fi
}
|