Add a preinstall target to the custom requirement script.