Installing PIL on 64-bit Ubuntu

I've just got a new laptop, and wanted to avoid messing around with symbolic links in order to install PIL in a virtual environment. I've just discovered patch, and thought I should automate my process of installing PIL (a process which previously involved me making a trivial edit to the file).