Customizing the Generic Builder
The operation of the generic builder can be modified in many
places by setting certain variables. These hook
variables are typically set to the name of some shell
function defined by you. For instance, to perform some additional
steps after make install you would set the
postInstall variable:
postInstall=myPostInstall
myPostInstall() {
mkdir $out/share/extra
cp extrafiles/* $out/share/extra
}