Clean up the trim and install it with finish nails or trim screws. Touch up the paint or stain as needed. Big job, were you successful? Find someone to pat you on the back, you have made a rather difficult door frame repair.