Move package install code to package recipe