This is my patched version of slock. The base version is directly from suckless.org.
The most basic way is to clone the repository and then invoke make.
git clone https://github.com/tiyn/st-0.9.0
make clean install