How to install and patch st

Patching documentation

Click the download link on the st website at the very bottom and extract (replace the version number):

cd $HOME/Downloads/ 
tar xvf st-X.X.tar.gz

Now, you can build and have a working binary of st (although, very minimal):

cd st-X.X/
make clean install

Check out the available patches here. Take the one you need and download with:

curl -O <download link>

Apply the patch:

patch -p1 < path/to/patch.diff

And rebuild the binary:

make clean install

Voilà! The patch should be applied.