|
|
@ -34,19 +34,21 @@ googleearth_extract() { |
|
|
|
tail --bytes $filesizes $1 | tar -v $taropt - -C googleearth > untar.txt |
|
|
|
} |
|
|
|
|
|
|
|
install_googleearth(){ |
|
|
|
makeopt= |
|
|
|
makeinstopt= |
|
|
|
|
|
|
|
hook_add postmake 5 'googleearth_install' |
|
|
|
googleearth_install() { |
|
|
|
# Do the actual installation. |
|
|
|
mkdir -pv $root/$prefix/google-earth |
|
|
|
tar -xvf googleearth/googleearth-linux-x86.tar -C $root/$prefix/google-earth |
|
|
|
tar -xvf googleearth/googleearth-data.tar -C $root/$prefix/google-earth |
|
|
|
mkdir -pv $root/$prefix/bin |
|
|
|
install -m 755 googleearth/bin/* $root/$prefix/bin |
|
|
|
tar -xvf googleearth-linux-x86.tar -C $root/$prefix/google-earth |
|
|
|
tar -xvf googleearth-data.tar -C $root/$prefix/google-earth |
|
|
|
|
|
|
|
# Install documentation. |
|
|
|
cp -vf googleearth/*.html $docdir |
|
|
|
install -m 755 bin/* $root$bindir/ |
|
|
|
|
|
|
|
# Make sure the necessary environment vars will be set.h |
|
|
|
echo "export GOOGLEEARTH_DATA_PATH=$root/$prefix/google-earth" > \ |
|
|
|
$sysconfdir/profile.d/googleearth |
|
|
|
cat <<-EOT > $root/etc/profile.d/googleearth |
|
|
|
|
|
|
|
export GOOGLEEARTH_DATA_PATH="/$prefix/google-earth" |
|
|
|
EOT |
|
|
|
} |