Thinking more, there’s not an obvious way to repackage as a hook runs as root (so makepkg
will refuse to run).
However, it’s at least possible to flag packages which need a rebuild (or at the very least highlight files that are in the wrong place now).