1 # Maintainer: Kiodo1981 <cristianmartina1981@gmail.com>
3 # Thanks to: 458italia <svenskaparadox@gmail.com> - Madek <gonzaloseguel@gmail.com> - Berseker <berseker86@gmail.com> - Det <nimetonmaili@gmail.com>
5 pkgname=google-earth-deb
8 pkgdesc="A 3D interface to view satellite images of Earth and others objects (i686 and x86_64 support)"
9 url="http://www.google.com/earth/index.html"
11 arch=('i686' 'x86_64')
12 install=googleearth.install
14 [ $CARCH = 'i686' ] && _a="i386"
15 depends=('libsm' 'libxrender' 'libgl' 'glib2' 'libxi' 'pcre' 'fontconfig' 'libxdamage' 'ld-lsb')
16 optdepends=('ttf-bitstream-vera: Fonts'
17 'nss-mdns: In case the application fails to contact the servers'
19 'nvidia-utils: 3D support for Nvidia cards'
20 'catalyst-utils: 3D support for ATI/AMD cards')
22 source=(http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb
23 http://earth.google.com/intl/en/license.html
27 googleearth-mimetypes.xml
32 md5sums=('5ea7dfb007ab1c0b70038762f65081ef'
33 '7363c6144ebb298b1d7aec713ca8a82a'
34 'b955ff71ae2ad0324ff6dd22452ee32c'
35 'c96486b18f4a264a4de98c7bd4443335'
36 'cf6cf51e4a3f6d95fb743fa35db3272d'
37 'e3c67b8d05c3de50535bd7e45eee728e'
38 '0a5da8bc60fe8fe1e4641243f8e218fa'
39 'bd9f74c28489eb79f31e84977e3cf305'
40 '335088571a7182988280643c61e0230e')
43 [ $CARCH = 'x86_64' ] && _a="amd64"
44 depends=('lib32-libsm' 'lib32-libxrender' 'lib32-libgl' 'lib32-glib2' 'lib32-libxi' 'lib32-pcre' 'lib32-fontconfig' 'lib32-libxdamage' 'lib32-gcc-libs' 'ld-lsb')
45 optdepends=('ttf-bitstream-vera: Fonts'
46 'lib32-nss-mdns: In case the application fails to contact the servers'
47 'lib32-gtk2: SCIM support'
48 'lib32-nvidia-utils: 3D support for Nvidia cards'
49 'lib32-catalyst-utils: 3D support for ATI/AMD cards')
51 source=(http://dl.google.com/dl/earth/client/current/google-earth-stable_current_amd64.deb
52 http://earth.google.com/intl/en/license.html
56 googleearth-mimetypes.xml
61 md5sums=('9f010b1676c3f2938529ea08227b7694'
62 '7363c6144ebb298b1d7aec713ca8a82a'
63 'b955ff71ae2ad0324ff6dd22452ee32c'
64 'c96486b18f4a264a4de98c7bd4443335'
65 'cf6cf51e4a3f6d95fb743fa35db3272d'
66 'e3c67b8d05c3de50535bd7e45eee728e'
67 '0a5da8bc60fe8fe1e4641243f8e218fa'
68 'bd9f74c28489eb79f31e84977e3cf305'
69 '335088571a7182988280643c61e0230e')
72 conflicts=('google-earth' 'bin32-google-earth')
74 [[ "${CARCH}" == "i686" ]] && [[ "${_use_system_libs}" == "yes" ]] && depends+=('curl' 'mesa' 'qt')
75 [[ "${CARCH}" == "x86_64" ]] && [[ "${_use_system_libs}" == "yes" ]] && depends+=('lib32-curl' 'lib32-mesa' 'lib32-qt')
78 cd $srcdir || return 1
79 ar -x google-earth-stable_current_$_a.deb || return 1
80 cd $pkgdir || return 1
81 tar -xvf ${srcdir}/data.tar.lzma || return 1
85 # Install the .desktop file
86 install -Dm644 googleearth.desktop "${pkgdir}/usr/share/applications/googleearth.desktop"
88 # Install the shared MIME info package
89 install -Dm644 googleearth-mimetypes.xml "${pkgdir}/usr/share/mime/packages/googleearth-mimetypes.xml"
92 install -Dm644 googleearth-icon.png "${pkgdir}/usr/share/pixmaps/googleearth-icon.png"
94 # Install the pango config file
95 [[ "${CARCH}" == "x86_64" ]] && install -Dm644 pangorc "${pkgdir}/opt/${pkgname}/pangorc"
97 if [[ "${CARCH}" == "x86_64" ]] && [[ "${_use_system_libs}" == "yes" ]]; then
98 # Removing the provided libraries to use the system ones instead
99 cd "${pkgdir}/opt/${pkgname}"
100 rm ${_libs_to_remove}
101 install -Dm644 "${srcdir}/qt.conf" qt.conf
104 # Change the ownership to root
105 chown -R root:root ${pkgdir}/*