These are instructions to build Doxygen from source.

doxygen.sh

cd /tmp
git clone --branch Release_1_8_18 --depth 1 https://github.com/doxygen/doxygen.git
mkdir doxygen/build && cd doxygen/build
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=$HOME/.local ..
make -j`nproc`
make install

Make sure that ~/.local/bin is in your $PATH.

You can download the shell script here: doxygen.sh

Tested on