If you are an Arch Linux user you can install it from AUR (Arch User Repository)
$ sudo pacman -S base-devel git
After that you can install azerothcore package:
git clone https://aur.archlinux.org/azerothcore.git cd azerothcore makepkg -si
Moreover, if you want you can use yay as AUR package manager to install AUR packages.