In Manjaro you just run this command, there’s a GU package manager as well, but I’ve never used it. Pamac takes care of downloading / building any required dependencies and the AUR repo includes any required patches for the application run well on Arch / Manjaro.
pamac build
I haven’t used Arch in years, but I believe it was something similar.
The whole system is pretty similar to, (but more refined than) FreeBSDs Ports tree.
A horse with no name (in my ass)