Add `install` and `postinstall` hook.