1 # Maintainer: Det <nimetonmaili at gmail a-dot com>
2 # Contributors: 458italia <svenskaparadox@gmail.com>, Madek <gonzaloseguel@gmail.com>, Berseker <berseker86@gmail.com>
7 pkgdesc="A 3D interface to view satellite images of Earth and other objects"
8 url="http://earth.google.com"
11 install=$pkgname.install
12 depends=('desktop-file-utils' 'lib32-fontconfig' 'ld-lsb' 'lib32-libgl' 'lib32-libsm' 'lib32-libxi' 'lib32-libxrender' 'lib32-pcre' 'shared-mime-info')
13 optdepends=('lib32-catalyst-utils: 3D support for ATI/AMD cards'
14 'lib32-gtk2: SCIM support'
15 'lib32-nss-mdns: In case the application fails to contact the servers'
16 'lib32-nvidia-utils: 3D support for Nvidia cards'
17 'qt: For changing the font size with qtconfig'
18 'ttf-ms-fonts: Fonts')
19 source=($pkgname-stable-$pkgver-i386.deb::http://dl.google.com/dl/earth/client/current/$pkgname-stable_current_i386.deb
20 $url/intl/en/license.html
21 $pkgname-mimetypes.xml)
22 md5sums=('9f010b1676c3f2938529ea08227b7694'
23 '7363c6144ebb298b1d7aec713ca8a82a'
24 'e3c67b8d05c3de50535bd7e45eee728e')
25 [[ "$CARCH" == "x86_64" ]] && source[0]=$pkgname-stable-$pkgver-amd64.deb::http://dl.google.com/dl/earth/client/current/$pkgname-stable_current_amd64.deb
27 if [[ "$CARCH" == "i686" ]]; then
28 depends=('desktop-file-utils' 'fontconfig' 'ld-lsb' 'libgl' 'libsm' 'libxi' 'libxrender' 'pcre' 'shared-mime-info')
29 optdepends=('catalyst-utils: 3D support for ATI/AMD cards'
31 'nss-mdns: In case the application fails to contact the servers'
32 'nvidia-utils: 3D support for Nvidia cards'
33 'qt: For changing the font size with qtconfig'
34 'ttf-ms-fonts: Fonts')
35 md5sums[0]='5ea7dfb007ab1c0b70038762f65081ef'
37 _instdir=/opt/google/earth/free
40 msg2 "Extracting the archive"
41 ar -x $pkgname-stable-$pkgver-*.deb
42 tar -xvf data.tar.lzma -C "$pkgdir"
44 msg2 "Installing the .desktop file"
45 mv "$pkgdir/$_instdir/$pkgname.desktop" "$pkgdir/usr/share/applications/"
47 msg2 "Installing the shared MIME info package"
48 install -Dm644 $pkgname-mimetypes.xml "$pkgdir/usr/share/mime/packages/$pkgname-mimetypes.xml"
50 msg2 "Installing the icons"
51 for i in 16 22 24 32 48 64 128 256; do
52 install -Dm644 "$pkgdir/$_instdir/product_logo_${i}.png" "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/$pkgname.png"
55 msg2 "Installing the license"
56 install -Dm644 license.html "$pkgdir/usr/share/licenses/$pkgname/license.html"
58 if [[ `lspci | grep VGA` == *Intel* ]]; then
59 msg2 "Installing the Intel-intended LibGL library file"
60 cd "$pkgdir/$_instdir"
61 curl -C - -O https://launchpadlibrarian.net/7037027/libGL.so.1
64 msg2 "Removing the Debian-intended cron job"
65 rm -f "$pkgdir/etc/cron.daily/$pkgname"
67 msg2 "Removing useless directories"
68 rm -r "$pkgdir"/usr/share/{gnome-control-center,man}