Tristan Stubbs made 94 as South Africa declared their second innings on 260-5 to set India a record victory target of 549 on day four of the second Test on Tuesday.