Add prepare function to generated PKGBUILD.

The prepare function is where patching should be performed according to the
manpage.

Signed-off-by: Magnus Therning <magnus@therning.org>