Had to change $HERE to $(HERE)
*smacks head* I should of known that! Nice job working that out.
However, now the /install directory is missing.
I would say it's unlikely the patch had anything to do with that. Not sure how your packaging this (scripting, or vpackager, etc) but when I script I create the directory
mkdir -p $PKG/install
before requiredbuilder and makepkg are run.
It cracks me up you used $HERE, in fact if I knew you were actually going to use it I would of named it something a bit more traditional.

Oh well, whatever works.