- # This PKGBUILD is based on Penguin's one for google-earth (i686 only)
- # Contributor: Jesus Lazaro Plaza
- pkgname=bin32-google-earth
- _pkgname=google-earth
- pkgver=5.0
- pkgrel=1
- pkgdesc="32 bits binaries of google-earth for Arch64"
- url="http://earth.google.com"
- license=('custom')
- depends=('lib32-libsm' 'lib32-libxrandr' 'lib32-libxcursor' 'lib32-libxft' 'lib32-libgl' 'lib32-glib2' 'lib32-libxi' 'lib32-libxinerama' 'lib32-pcre')
- optdepends=('ttf-bitstream-vera')
- install=googleearth.install
- source=(http://dl.google.com/earth/client/current/GoogleEarthLinux.bin http://earth.google.com/intl/en/license.html googleearth googleearth.desktop googleearth-mimetypes.xml)
- arch=('x86_64')
- md5sums=('8295e1e38ab5c7158011fe9359c1cf1b'
- 'd76d88c2bb14f16dd1f87e7a009db1e2'
- '005109377cb797f6cb12a74abdd0835e'
- 'be7209d3edb3df110946acf5e0cd0db3'
- '84e1efd656f86c52333cc629b31accb0')
- build() {
- cd ${startdir}/src
- # Extract archive
- sh ./GoogleEarthLinux.bin --noexec --target ${startdir}/src/${_pkgname} || return 1
- # Install binaries and data files
- mkdir -p ${startdir}/pkg/opt/${_pkgname}
- tar -xpf ${startdir}/src/${_pkgname}/googleearth-linux-x86.tar -C ${startdir}/pkg/opt/${_pkgname}/ || return 1
- tar -xpf ${startdir}/src/${_pkgname}/googleearth-data.tar -C ${startdir}/pkg/opt/${_pkgname}/ || return 1
- # Install executable
- install -D -m755 ${startdir}/src/googleearth ${startdir}/pkg/usr/bin/googleearth || return 1
- # Install .desktop file
- install -D -m644 ${startdir}/src/googleearth.desktop ${startdir}/pkg/usr/share/applications/googleearth.desktop || return 1
- # Install shared MIME info package
- install -D -m644 ${startdir}/src/googleearth-mimetypes.xml ${startdir}/pkg/usr/share/mime/packages/googleearth-mimetypes.xml || return 1
- # Install icon
- install -D -m644 ${startdir}/src/${_pkgname}/googleearth-icon.png ${startdir}/pkg/usr/share/pixmaps/googleearth-icon.png || return 1
- # Install license
- install -D -m644 ${startdir}/src/license.html ${startdir}/pkg/usr/share/licenses/${_pkgname}/license.html || return 1
- # Change ownership to root
- chown -R root:root ${startdir}/pkg/* || return 1
- }
Posted by Berseker on Tue 3 Feb 18:02
report abuse | download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.