If you are an Arch Linux user you can install it from AUR (Arch User Repository)
All you need to install AUR packages is base-devel and git, you can install them with pacman:
$ 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.