# Note: depends on cmake
# Note: depends on fribidi
# Note: depends on libogg
# Note: depends on libvorbis
# Note: depends on openal-soft
# Note: depends on curl
# Note: depends on mesa
# Note: depends on libXxf86vm
# Note: depends on libXrandr
# Note: depends on libpng
# Note: depends on jpeg
# Note: depends on glu
wget -c http://downloads.sourceforge.net/project/supertuxkart/SuperTuxKart/0.9/supertuxkart-0.9-src.tar.xz
tar -xJf supertuxkart-0.9-src.tar.xz
cd supertuxkart-0.9
sed -i -e 's/return 1/return (boolean)1/' lib/irrlicht/source/Irrlicht/CImageLoaderJPG.cpp
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr" -DUSE_WIIUSE=0 ..
make # Doesn't mind -j#
make install