Target boot the laptop, put the OS CD/DVD in the G5. Connect them with a FIREWIRE cable (probably a 400) cable.

Leave the laptop in target mode and powered by charger/ac adapter. Start the install from the G5 and after restart installer will ask you where and what kind of install to do, choose the FIREWIRE drive and install.

Good Luck,

N;