Share Pastebin
Guest
Public paste!

Berseker

By: a guest | Feb 3rd, 2009 | Syntax: None | Size: 2.15 KB | Hits: 57 | Expires: Never
Copy text to clipboard
  1. # This PKGBUILD is based on Penguin's one for google-earth (i686 only)
  2.  
  3. # Contributor: Jesus Lazaro Plaza
  4.  
  5. pkgname=bin32-google-earth
  6. _pkgname=google-earth
  7. pkgver=5.0
  8. pkgrel=1
  9. pkgdesc="32 bits binaries of google-earth for Arch64"
  10. url="http://earth.google.com"
  11. license=('custom')
  12. depends=('lib32-libsm' 'lib32-libxrandr' 'lib32-libxcursor' 'lib32-libxft' 'lib32-libgl' 'lib32-glib2' 'lib32-libxi' 'lib32-libxinerama' 'lib32-pcre')
  13. optdepends=('ttf-bitstream-vera')
  14. install=googleearth.install
  15. source=(http://dl.google.com/earth/client/current/GoogleEarthLinux.bin http://earth.google.com/intl/en/license.html googleearth googleearth.desktop googleearth-mimetypes.xml)
  16. arch=('x86_64')
  17.  
  18. md5sums=('8295e1e38ab5c7158011fe9359c1cf1b'
  19.          'd76d88c2bb14f16dd1f87e7a009db1e2'
  20.          '005109377cb797f6cb12a74abdd0835e'
  21.          'be7209d3edb3df110946acf5e0cd0db3'
  22.          '84e1efd656f86c52333cc629b31accb0')
  23.  
  24. build() {
  25.         cd ${startdir}/src
  26.  
  27.         # Extract archive
  28.         sh ./GoogleEarthLinux.bin --noexec --target ${startdir}/src/${_pkgname} || return 1
  29.  
  30.         # Install binaries and data files
  31.         mkdir -p ${startdir}/pkg/opt/${_pkgname}
  32.         tar -xpf ${startdir}/src/${_pkgname}/googleearth-linux-x86.tar -C ${startdir}/pkg/opt/${_pkgname}/ || return 1
  33.         tar -xpf ${startdir}/src/${_pkgname}/googleearth-data.tar -C ${startdir}/pkg/opt/${_pkgname}/ || return 1
  34.  
  35.         # Install executable
  36.         install -D -m755 ${startdir}/src/googleearth ${startdir}/pkg/usr/bin/googleearth || return 1
  37.  
  38.         # Install .desktop file
  39.         install -D -m644 ${startdir}/src/googleearth.desktop ${startdir}/pkg/usr/share/applications/googleearth.desktop || return 1
  40.  
  41.         # Install shared MIME info package
  42.         install -D -m644 ${startdir}/src/googleearth-mimetypes.xml ${startdir}/pkg/usr/share/mime/packages/googleearth-mimetypes.xml || return 1
  43.  
  44.         # Install icon
  45.         install -D -m644 ${startdir}/src/${_pkgname}/googleearth-icon.png ${startdir}/pkg/usr/share/pixmaps/googleearth-icon.png || return 1
  46.        
  47.         # Install license
  48.         install -D -m644 ${startdir}/src/license.html ${startdir}/pkg/usr/share/licenses/${_pkgname}/license.html || return 1
  49.  
  50.         # Change ownership to root
  51.         chown -R root:root ${startdir}/pkg/* || return 1
  52. }