Remove any baseboards and molding on the wall where. Build the bookcase to fit the wall you want (it can be the entire wall or just part of it).
Cheap shelves for wall diy
Diy recessed shelves in wall
Mounting cube shelves to wall diy