On Ubuntu 22.04 it's simple - no need to compile at all. Just add Jasem's PPA and do an "apt install". It all just works.
The PPA features ARM builds, and they've worked seamlessly on my RPi4 for a few years now. I don't seem to be missing anything by running Ubuntu rather than Raspberry Pi OS, and it behaves just like any other Ubuntu system.
Applies to more than simply Ubuntu 22.04.
I did a whole series of
basic articles
on how to set up various Ubuntu derivatives with the PPA and basic configuration over on my site.a
Most of them also discuss enabling remote access to the software for VNC/RDP access.
since I have been pulled in, I'd like to clarify that while I am the "main" character behind astroarch and being using mostly FOSS since forever I know very well why is SO BAD to have a one person project.
AstroArch can be considered mantained by at least 3 people and rest assured, if I should die tomorrow Stephan will be able to release new versions the same way I did till now
I am also considering mirroring the repo where I host pre-compiled package and have multiple owners for that.
From that pov I think AA is in a slightly better position