This document explains how to install Amarok 2 from SVN in your home directory - in an easy way :)
==================================================================================================

* If you already have Amarok installed from your distro, uninstall it to prevent setting conflicts and similar.

* Install compiler and KDE 4 development packages:

  In Ubuntu, Debian, and all their derivatives:

    sudo aptitude install build-essential
    sudo aptitude install kde-devel

  In Archlinux:

    sudo pacman -S base-devel kdelibs kdebase-runtime

  In Gentoo:

    sudo emerge kdelibs plasma-workspace

* Append the following to $HOME/.bashrc:
    export PATH=$HOME/kde/bin:$PATH
    export KDEDIR=$HOME/kde
    export KDEDIRS=$KDEDIR

* Reload your edited .bashrc:
    source $HOME/.bashrc

    NOTE: if you are not using the bash shell, edit your proper shell config file (~/.zshrc or ~/.tcshrc or whatever it may be)

* Create folders:
    mkdir $HOME/kde
    mkdir $HOME/kde/src
    mkdir -p $HOME/kde/build/amarok

* Check out Amarok:
    cd $HOME/kde/src
    git pull git://gitorious.org/amarok/amarok.git

* Building:
    cd $HOME/kde/build/amarok
    cmake -DCMAKE_INSTALL_PREFIX=$HOME/kde -DCMAKE_BUILD_TYPE=debugfull $HOME/kde/src/amarok
    make install

* Updating KDE Config:
    kbuildsycoca4 --noincremental


Now you are ready to run Amarok 2, by typing "amarok" in the shell :)


NOTE:
If you have installed MySQL Embedded in non-default location (i.e. $HOME/usr),
Amarok may fail to start with error regarding libmysqlclient library. In this
case, add the following string to your ~/.bashrc:

    export LD_LIBRARY_PATH=$HOME/usr/lib/mysql:$LD_LIBRARY_PATH

where $HOME/usr is the path you've used in --prefix option.


Have fun :)

