Use before_install rather than install.