wok rev 1706

get-google-earth: fix path & install depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 14 09:54:42 2008 +0000 (2008-11-14)
parents daea944c82bd
children 94cd3ca7174d
files get-google-earth/stuff/get-google-earth
line diff
     1.1 --- a/get-google-earth/stuff/get-google-earth	Fri Nov 14 09:24:33 2008 +0000
     1.2 +++ b/get-google-earth/stuff/get-google-earth	Fri Nov 14 09:54:42 2008 +0000
     1.3 @@ -1,5 +1,7 @@
     1.4  #!/bin/sh -e
     1.5  
     1.6 +DEPENDS="mesa"
     1.7 +
     1.8  if test $(id -u) != 0 ; then
     1.9  	echo -e "\nYou must be root to run `basename $0`."
    1.10  	echo -e "Please type 'su' and root password to become super-user.\n"
    1.11 @@ -22,6 +24,11 @@
    1.12  
    1.13  VERSION=$(head GoogleEarthLinux.bin | grep ^label | sed 's/.*Linux \(.*\)"/\1/')
    1.14  
    1.15 +# Add depends
    1.16 +for i in $DEPENDS; do
    1.17 +	yes y | tazpkg get-install $i
    1.18 +done
    1.19 +
    1.20  # Extract
    1.21  ./GoogleEarthLinux.bin
    1.22  
    1.23 @@ -31,10 +38,10 @@
    1.24  	[ -d $dest ] || mkdir -p $dest
    1.25  	cp -a $file $dest
    1.26  done <<EOT
    1.27 -/sbin/googleearth
    1.28 -/usr/share/applications/Google-googleearth.desktop
    1.29 +$(ls /*bin/googleearth /usr/*bin/googleearth 2> /dev/null)
    1.30 +$(ls /usr/share/applications/*googleearth*.desktop)
    1.31  /usr/share/applications/defaults.list
    1.32 -/usr/local/google-earth
    1.33 +$(ls -d /usr/*/google-earth)
    1.34  EOT
    1.35  cat > google-earth-$VERSION/receipt <<EOT
    1.36  PACKAGE="google-earth"
    1.37 @@ -42,7 +49,7 @@
    1.38  CATEGORY="non-free"
    1.39  SHORT_DESC="3D planet viewer."
    1.40  WEB_SITE="http://earth.google.com/"
    1.41 -DEPENDS="mesa"
    1.42 +DEPENDS="$DEPENDS"
    1.43  EOT
    1.44  
    1.45  # Pack