It is not that difficult to build Onsen UI from source. However, there are some prerequisites for a success build.
CircleCI Recipe is a good starting point that describes the build dependencies. Please note that we periodically make changes to the building tools - like Yarn, Node version, etc.
We have been using Linux environment for building the package, but other *NIX environments should run the build too.