# HG changeset patch # User Pascal Bellard # Date 1226656482 0 # Node ID 68e403f0100618c7737c106243ce4de7e0c3e7f5 # Parent daea944c82bda2428c6826186b1e7374dd5522f6 get-google-earth: fix path & install depends diff -r daea944c82bd -r 68e403f01006 get-google-earth/stuff/get-google-earth --- a/get-google-earth/stuff/get-google-earth Fri Nov 14 09:24:33 2008 +0000 +++ b/get-google-earth/stuff/get-google-earth Fri Nov 14 09:54:42 2008 +0000 @@ -1,5 +1,7 @@ #!/bin/sh -e +DEPENDS="mesa" + if test $(id -u) != 0 ; then echo -e "\nYou must be root to run `basename $0`." echo -e "Please type 'su' and root password to become super-user.\n" @@ -22,6 +24,11 @@ VERSION=$(head GoogleEarthLinux.bin | grep ^label | sed 's/.*Linux \(.*\)"/\1/') +# Add depends +for i in $DEPENDS; do + yes y | tazpkg get-install $i +done + # Extract ./GoogleEarthLinux.bin @@ -31,10 +38,10 @@ [ -d $dest ] || mkdir -p $dest cp -a $file $dest done < /dev/null) +$(ls /usr/share/applications/*googleearth*.desktop) /usr/share/applications/defaults.list -/usr/local/google-earth +$(ls -d /usr/*/google-earth) EOT cat > google-earth-$VERSION/receipt <