5.05pm: So, it'll be 58 to win, and still plenty of time left in this evening session - 45 minutes or so, once they come back out, plus the possibility of an extra half hour to get the result. Pakistan can take heart from a monumental fightback, overturning the second-largest third-innings deficit in history (after this famous effort). But it doesn't look like being enough to prevent a 2-0 series win for South Africa
Mir Hamza c Maphaka b Rabada 16 (30m 20b 0x4 1x6) SR: 80