build amr package