Including a $1bn share buyback, after bumper commodity prices lifted first-half profits to their best ever.