to build w/o either of those remove lines 31 and 37 from the file called PKGBUILD inside of the ddnet dir you just cloned. if you want to make it work the proper way, install https://aur.archlinux.org/discord-game-sdk.git with the same steps as above & ninja with pacman -S ninja
u may want to get an aur helper such as paru or yay. i also have a script i used when i was on arch, i can link it if you're interested but it's not any better than the others
cirs is my muscle memory xd, c for clean, i for auto-install (so u don't have to do pacman manually after), s is for auto-installing dependencies from pacman if available, r goes with s to remove said dependencies after build
03:22
but just makepkg itself would be fine too if you want to keep those deps for some reason
03:22
and c isn't needed as i said to remove the build dir after