install build dependencies
sudo apt install cmake libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-net-dev libvorbis-dev libboost-all-dev libpango1.0-dev
clone repo
git clone https://github.com/wesnoth/wesnoth.git
first build