How do you build OSMC?

I guess you can find some answers in this thread Are there any nightly builds for OSMC?