To make the shortcrust pastry, put all ingredients in a bowl and knead until smooth and well combined. Wrap and rest for 30 minutes, if you can, then roll it out to 5-8mm thickness.
Whilst the pastry is resting, set the oven to 200°C. Also, make the filling by mixing the curd cheese, sugar, yolks, semolina, lemon zest & raisins (if used).
Roll the dough out to the size of a large baking tray (about 5 mm thickness) and bake the pastry for about 15 minutes, until light brown.
Take the tray out of the oven and reduce the oven temperature to 180°C. Spread the cheese mixture evenly all over the pastry and bake for about 20 minutes until it sets.
Meanwhile whisk the egg whites until stiff, then fold in the sugar.
Either spread the meringue on top of the cheese filling or pipe grids with it on the top.
Turn down the temperature to 160°C and bake for 5-10 minutes until the top is light brown.
Let it cool and fill the gaps between the grids with apricot jam, or simply drizzle some over the top.
When it's completely cool, cut into squares or slices.