On ALT-Linux distributions all build dependencies can be installed with following command:
apt-get install cmake gcc-c++ qt5-base-devel qt5-tools-devel qt5-base-common
mkdir -p build
cmake -B build -DGPUI_BUILD_TESTS=OFF .
cd build && make -j `nproc`
gear-rpm -ba