Actually, a mini-battery doesn't even need to be in the engine compartment OR the trunk.
Depending on the car and its use, it could be inside the RF or LF apron, forward of the wheel/tire.
Bracket off frame rail or bumper bracket, splash shield if the car sees rain.
A master switch could be underhood if you like, as well as charging/jumper posts.