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).
Diy floating shelves between two walls
Shelves for wall diy
How to diy wall shelves