###
## A script to setup some needed variables and functions for running a hand built KDE 4.
##
## Peeled and pureed by the openSUSE KDE team - opensuse-kde@opensuse.org
##

# Identify if this is a x86_64 system by asking rpm
rpm_bin=`which rpm 2>/dev/null`
if [ -x "$rpm_bin" ]
then
    _libdir=`rpm --eval '%{_lib}'`
else
    echo -e "Couldn't find rpm binary to test if libraries are installed in lib or lib64; this script is for RPM based Linux distributions!"
fi

if [ "x$_libdir" = "xlib64" ]
then
    LIB_SUFFIX=64
fi

##############################################################################
## User editable locations start here

# KDE
# The location where KDE 4 should be installed
KDE_INSTALL_PREFIX=$HOME/kdesvn/install
# Location for per-user storage for KDE 4 apps
export KDEHOME=$HOME/.kde4
export PKG_CONFIG_PATH=$KDE_INSTALL_PREFIX/$_libdir/pkgconfig:$PKG_CONFIG_PATH

export QT_PLUGIN_PATH=$KDE_INSTALL_PREFIX/$_libdir/kde4/plugins:$QT_PLUGIN_PATH

# Other
# you might want to remove $PATH from the end of this line and add any
# essential items from your path - to make sure the your kde3 path isn't
# in here.
export PATH=$KDE_INSTALL_PREFIX/bin:$PATH
export LD_LIBRARY_PATH=$KDE_INSTALL_PREFIX/$_libdir:$LD_LIBRARY_PATH

