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 wall shelves for books
Diy wall shelves for shoes
Diy wall corner shelves