To build from scratch, please see https://github.com/ankitects/anki