|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
#
|
|
# Filename: package/.../googleearth/googleearth.conf
|
|
# Copyright (C) 2007 The OpenSDE Project
|
|
#
|
|
# More information can be found in the files COPYING and README.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
|
# GNU General Public License can be found in the file COPYING.
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
# comes as script with a bzip2 at the end so we need to find out
|
|
# how many bytes the archive is and then extract it using tail
|
|
|
|
install_googleearth(){
|
|
if [ $prefix_auto = 1 ] ; then
|
|
prefix="opt/google"
|
|
fi
|
|
googleebin="archdir/GoogleEarthLinux-*.bin"
|
|
binsize=$(strings $googleebin |grep "filesizes="|head -n 1|sed 's,[^0-9],,g')
|
|
mkdir googleearth
|
|
tail --bytes $binsize $googleebin | tar -xjf - -C googleearth
|
|
if [ ! -d $root/$prefix/google-earth ];then
|
|
mkdir -pv $root/$prefix/google-earth
|
|
fi
|
|
tar -xvf googleearth/googleearth-linux-x86.tar -C $root/$prefix/google-earth
|
|
tar -xvf googleearth/googleearth-data.tar -C $root/$prefix/google-earth
|
|
if [ ! -d $root/$prefix/bin ];then
|
|
mkdir -v $root/$prefix/bin
|
|
fi
|
|
install -m 755 googleearth/bin/* $root/$prefix/bin
|
|
cp -vf googleearth/*.html $docdir
|
|
echo "export GOOGLEEARTH_DATA_PATH=$root/$prefix/google-earth" > \
|
|
$sysconfdir/profile.d/googleearth
|
|
}
|
|
autoextract=0
|
|
custmain="install_googleearth"
|