In a terminal
sudo apt get install subversion git build-essential cmake
We assume you install the game in $HOME/games
mkdir games cd games # get the code (here, use the command you'll find in the list of the forks for using a modified version) # (fetch official code) git clone https://github.com/supertuxkart/stk-code supertuxkart.git # get the assets svn co https://svn.code.sf.net/p/supertuxkart/code/stk-assets stk-assets
See the list of active forks to use a fork (or a future feature) of SuperTuxKart.
cd supertuxkart.git mkdir _build cd _build cmake .. make
Once the compilation is done, you can run the game.
./bin/supertuxkart
Source : https://github.com/supertuxkart/stk-code/blob/master/INSTALL.md
(the current dir shall be _build)
If you install git version as main version just use sudo make install
.
(the current dir shall be _build)
this method doesn't work well yet, the user have to lauch the app from stk source dir
If you install git version as main version use :
sed -i "s|\(set(CMAKE_INSTALL_PREFIX \).*|\1\"$HOME/.local\")|" cmake_install.cmake make install
To create a launcher you can edit a file in games/ named 'supertuxkart_git.sh' (you can move it anywhere):
supertuxkart() { _STKDIR="$(locate supertuxkart.git/_build/bin | head -1)" [ -z "$_STKDIR" ] && exit 1 pushd $(dirname $_STKDIR) if [ -z "$(find . -name supertuxkart -executable 2> /dev/null)" ]; then make fi ./bin/supertuxkart $@ popd } supertuxkart $@
Finally set rights to execute the file
chmod +x supertuxkart_git.sh
You'll have to create a file supertuxkart_git.desktop
in ~/.local/share/applications
[Desktop Entry] Name=SuperTuxKart Icon=supertuxkart GenericName=SuperTuxKart (latest) Exec=~/games/supertuxkart_git.sh Terminal=false StartupNotify=false Type=Application Categories=Game;ArcadeGame;
Any suggestions / questions ?