Kaushal Silva was unbeaten on 38 and Kumar Sangakkara was on 36. Upul Tharanga was the batsman out for 19.
Earlier, Younis Khan top-scored for Pakistan with 177 and Sri Lankan off-spinner Dilruwan Perera grabbed the last five wickets as the tourists were bowled out just before tea.