Move to the directory of where the pkgbuild are stored and type :
$ makepkg -si
This command will install spidermonkey 31.5.0. It may takes a while, so you can go for a coffe. After succes install, the files in /usr/include/mozjs-31/ are symlinked to the files in your ./src/mozjs-31.5.0 .