It's quite long beat with me. (First part is from official guide with extended dependencies https://wiki.qt.io/Building_Qt_5_from_Git) First we enable source repo
sudo nano /etc/apt/sources.list
To enable it we need to uncomment in the following way