Here's my shell script for build MoarVM, NQP, and Rakudo from source.