Actually, the best way to get the Calibre sources is documented clearly in the User's Manual:
bzr branch lp:calibre
Copyright © 2013, Eklektix, Inc. Comments and public postings are copyrighted by their creators. Linux is a registered trademark of Linus Torvalds