Init and apply patches then build project.