# Note: depends on cmake
# Note: depends on libX11
# Note: depends on freetype
# Note: depends on jpeg
# Note: depends on libpng
# Note: depends on fontconfig
# Note: depends on libXft
# Note: depends on libXmu
# Note: depends on libXrender
# Note: depends on libXrandr
wget -c http://download.berlios.de/slim/slim-1.3.6.tar.gz
tar -xzf slim-1.3.6.tar.gz
cd slim-1.3.6
# slimlock is only built if support for pam is enabled
sed -i -e '/TARGETS slimlock/iif(USE_PAM)' CMakeLists.txt
sed -i -e '/TARGETS slimlock/aendif(USE_PAM)' CMakeLists.txt
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr" ..
make # Doesn't mind -j#
make install