For the pastry, whizz the flour, sugar, a pinch of salt and the butter in a food processor until the mixture resembles coarse crumbs.