The Australian sharemarket booked its first gain for the week on Thursday as a powerful copper-fuelled surge in the big miners offset losses in banking and utilities stocks.