Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=56ba53512c9217cf3eb0dea80bc8f6654e980222
commit 56ba53512c9217cf3eb0dea80bc8f6654e980222 Author: Devil505 <devil505li...@gmail.com> Date: Mon Mar 21 17:47:40 2011 +0100 googleearth-6.0.1.2032-1-i686 * version bump * changed m8r (Vmiklos->Devil505) * added custom xml and exe files * build part re-written diff --git a/source/xapps-extra/googleearth/FrugalBuild b/source/xapps-extra/googleearth/FrugalBuild index 860a894..07724a8 100644 --- a/source/xapps-extra/googleearth/FrugalBuild +++ b/source/xapps-extra/googleearth/FrugalBuild @@ -1,39 +1,68 @@ # Compiling Time: 0.09 SBU -# Maintainer: Miklos Vajna <vmik...@frugalware.org> +# Maintainer: Devil505 <devil505li...@gmail.com> +# Contributor: Miklos Vajna <vmik...@frugalware.org> pkgname=googleearth -pkgver=5.0 -pkgrel=5 +pkgver=6.0.1.2032 +pkgrel=1 pkgdesc="A 3D interface to the planet" url="http://earth.google.com/" depends=('mesa' 'libsm' 'openssl' 'curl' 'libstdc++' 'libxcursor' 'libmng' 'libxft' 'libpng') +rodepends=('ttf-bitstream-vera') groups=('xapps-extra') archs=('i686') up2date="lynx -dump http://earth.google.com/download-earth.html|grep 'Download Google Earth'|sed 's/.* \([0-9\.]\+\) .*/\1/;q'" -source=(http://dl.google.com/earth/client/current/GoogleEarthLinux.bin) -sha1sums=('784a9568f9c89682bb787a93644ce03052a0cfea') +source=(http://dl.google.com/earth/client/current/GoogleEarthLinux.bin \ + $pkgname.sh \ + $pkgname-mimetypes.xml) +sha1sums=('784a9568f9c89682bb787a93644ce03052a0cfea' \ + '38702144900852ffb7c9bdc2684b0ff00440f464' \ + '08e2e7cbd43cccdfb0ac97a9ce8885276a1411a3') options=('nobuild' 'nostrip' 'noversrc') -build() -{ - Funpack_makeself GoogleEarthLinux.bin - Fcd GoogleEarthLinux - Fsed '$SETUP_INSTALLPATH/' '' postinstall.sh - Fsed ' --user' ' --system' postinstall.sh - Fsed '$SETUP_INSTALLPATH' '1' postinstall.sh - Fsed '/usr' "$Fdestdir/usr" linux/xdg/xdg-{mime,desktop-menu} - Fsed '-x $x/update-mime' '-d junk' linux/xdg/xdg-{mime,desktop-menu} - Fsed '-x $x/update-desktop' '-d junk' linux/xdg/xdg-{mime,desktop-menu} - Fmkdir /usr/{bin,share/{appl{ications,nk},gnome/apps,mime/packages}} - ./postinstall.sh || return 1 - Ficonrel googleearth-icon.png - Fdocrel README.linux - cd bin - tar xpf ../googleearth-linux-x86.tar - Fexerel * /usr/lib/googleearth/ - cd $Fdestdir/usr/lib/googleearth - tar xpf $Fsrcdir/GoogleEarthLinux/googleearth-data.tar - Fln /usr/lib/googleearth/googleearth /usr/bin/googleearth - # see #3628 - Frm /usr/lib/googleearth/libcrypto.so.0.9.8 +_F_desktop_name="Google Earth" +_F_desktop_desc="Explore, search and discover the planet" +_F_desktop_icon="$pkgname" +_F_desktop_categories="Application;Network" + +build() { + # Extract the archive + Funpack_makeself GoogleEarthLinux.bin + Fcd GoogleEarthLinux + + # Install the binaries and data files + Fmkdir usr/lib/$pkgname + tar xpf $pkgname-linux-x86.tar -C $Fdestdir/usr/lib/$pkgname/ || Fdie + tar xpf $pkgname-data.tar -C $Fdestdir/usr/lib/$pkgname/ || Fdie + + # Install the executable + Fexe $pkgname.sh usr/bin/$pkgname + + # Install the .desktop file + Fdesktop2 + + # Install the shared MIME info package + Finstall 644 $pkgname-mimetypes.xml usr/share/mime/packages/$pkgname-mimetypes.xml + + # Install the icon + Finstallrel 644 $pkgname-icon.png usr/share/pixmaps/$pkgname.png + + # Install the license + Fdocrel README.linux + + # Change the ownership to root + chown -R root:root $Fdestdir/usr/lib/$pkgname || Fdie + + # Fixing lsb + Fln /lib/ld-linux.so.2 /lib/ld-lsb.so.3 + + # Removing the provided libraries to use the system ones instead + Frm $Fdestdir/usr/lib/$pkgname/libQtCore.so.4 + Frm $Fdestdir/usr/lib/$pkgname/libQtGui.so.4 + Frm $Fdestdir/usr/lib/$pkgname/libQtNetwork.so.4 + Frm $Fdestdir/usr/lib/$pkgname/libQtWebKit.so.4 + Fln /usr/lib/libQtCore.so.4.4.3 /usr/lib/$pkgname/libQtCore.so.4 + Fln /usr/lib/libQtGui.so.4.4.3 /usr/lib/$pkgname/libQtGui.so.4 + Fln /usr/lib/libQtNetwork.so.4.4.3 /usr/lib/$pkgname/libQtNetwork.so.4 + Fln /usr/lib/libQtWebKit.so.4.4.3 /usr/lib/$pkgname/libQtWebKit.so.4 } diff --git a/source/xapps-extra/googleearth/googleearth-mimetypes.xml b/source/xapps-extra/googleearth/googleearth-mimetypes.xml new file mode 100644 index 0000000..5bb218b --- /dev/null +++ b/source/xapps-extra/googleearth/googleearth-mimetypes.xml @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> + <mime-type type="application/vnd.google-earth.kml+xml"> + <comment>Keyhole Markup Language data</comment> + <glob pattern="*.kml"/> + </mime-type> + + <mime-type type="application/vnd.google-earth.kmz"> + <comment>Keyhole Markup Language archive</comment> + <glob pattern="*.kmz"/> + </mime-type> + + <mime-type type="application/keyhole"> + <comment>Keyhole Markup Language data</comment> + </mime-type> + + <mime-type type="application/earthviewer"> + <comment>Keyhole Markup Language data</comment> + </mime-type> +</mime-info> \ No newline at end of file diff --git a/source/xapps-extra/googleearth/googleearth.sh b/source/xapps-extra/googleearth/googleearth.sh new file mode 100644 index 0000000..4b2a7e2 --- /dev/null +++ b/source/xapps-extra/googleearth/googleearth.sh @@ -0,0 +1,16 @@ +#!/bin/bash +GOOGLEEARTH_DATA_PATH="/usr/lib/googleearth" + +LD_LIBRARY_PATH=.:${GOOGLEEARTH_DATA_PATH}:${LD_LIBRARY_PATH} +export LD_LIBRARY_PATH + +cd "${GOOGLEEARTH_DATA_PATH}/" + +# Fix for languages that use "," instead of "." for separating thousands from hundreds in numbers +LANGUAGES_AFFECTED="de_DE it_IT" +SYSTEM_LANGUAGE=`echo ${LANG/.*}` +if [ `echo ${LANGUAGES_AFFECTED} | grep -c ${SYSTEM_LANGUAGE}` -gt 0 ]; then + export LC_NUMERIC=en_US.UTF8 +fi + +exec "./googleearth-bin" $* _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git