Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD for google-earth-5.1.3535.3218

By: a guest on May 25th, 2010  |  syntax: Bash  |  size: 2.56 KB  |  views: 436  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Michal Krenek <mikos@sg1.cz>
  2. # Contributor: Jesus Lazaro Plaza <jesuslazaro84@gmail.com>
  3. # Contributor: Alessandro Sagratini <ale_sagra@hotmail.com>
  4. # Contributor: Bob Finch <w9ya@qrpqrci.net>
  5. # Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
  6. # Contributor: Daniel Golle <daniel.golle@gmail.com>
  7. # Maintainer: Jeremy Sands <cto@jeremysands.com>
  8.  
  9. pkgname=google-earth
  10. pkgver=5.1.3535.3218
  11. pkgrel=1
  12. pkgdesc="A 3D interface to the planet Earth"
  13. url="http://earth.google.com"
  14. depends=('curl' 'qt')
  15. install=googleearth.install
  16. source=(http://dl.google.com/earth/client/current/GoogleEarthLinux.bin
  17.         http://earth.google.com/intl/en/license.html
  18.         googleearth
  19.         googleearth.desktop
  20.         googleearth-mimetypes.xml)
  21. conflicts=('bin32-google-earth')
  22. arch=('i686')
  23. license=('custom')
  24.  
  25. md5sums=('69a52b92691f725b15e28b9fa2a123b2'
  26.          '757d9726191f365209fa13acdd0ab6e7'
  27.          '005109377cb797f6cb12a74abdd0835e'
  28.          'd819a1961382826b7f92ee32dd67f2e1'
  29.          '84e1efd656f86c52333cc629b31accb0')
  30.  
  31. build() {
  32.   cd $srcdir
  33.  
  34.   chmod 755 ./GoogleEarthLinux.bin
  35.   ./GoogleEarthLinux.bin --noexec --target $srcdir/$pkgname || return 1
  36.  
  37.   mkdir -p $pkgdir/opt/$pkgname
  38.   tar xf $pkgname/googleearth-data.tar -C $pkgdir/opt/$pkgname/ || return 1
  39.  
  40.   #adjust bad perms in files
  41.   (
  42.     cd $pkgdir/opt/$pkgname &&
  43.     find -type d | xargs chmod 755 &&
  44.     find -type f | xargs chmod 644 &&
  45.     chmod 755 gpsbabel
  46.   ) || return 1
  47.  
  48.   chmod 755 $pkgdir/opt/$pkgname/gpsbabel || return 1
  49.  
  50.   tar xf $pkgname/googleearth-linux-x86.tar -C $pkgdir/opt/$pkgname/ || return 1
  51.  
  52.   # delete libs that are already in Arch Linux, and better quality than theses ;)
  53.   (
  54.     cd $pkgdir/opt/$pkgname &&
  55.     rm -f lib{crypto.so.*,Qt*,GLU.so.*,curl.so.*,gcc_s.so.*,stdc++.so.*,z.so.*} &&
  56.     rm -rf plugins &&
  57.     rm -f qt.conf &&
  58.     chown -R root:root .
  59.   ) || return 1
  60.  
  61.   install -D -m 755 googleearth \
  62.     $pkgdir/usr/bin/googleearth || return 1
  63.   install -D -m 644 googleearth.desktop \
  64.     $pkgdir/usr/share/applications/googleearth.desktop || return 1
  65.   install -D -m 644 googleearth-mimetypes.xml \
  66.     $pkgdir/usr/share/mime/packages/googleearth-mimetypes.xml || return 1
  67.   install -D -m 644 $pkgname/googleearth-icon.png \
  68.     $pkgdir/usr/share/pixmaps/googleearth-icon.png || return 1
  69.   install -D -m 644 license.html \
  70.     $pkgdir/usr/share/licenses/$pkgname/license.html || return 1
  71.  
  72.   cd $pkgdir/opt/google-earth/
  73.   ln -s /usr/lib/libstdc++.so.6 || return 1
  74.   ln -s /usr/lib/libgcc_s.so.1 || return 1
  75.  
  76. }
clone this paste RAW Paste Data