How can I frame a bookshelf like this?
I'd frame it out and then clad with paint-grade MDF. That seems a lot easier than trying to tape and mud all those outside drywall corners. 

Also...be sure to keep the center compartment big enough so you can continue to upgrade the size of your TV. ;)