Preheat the oven to 190C/170C Fan/Gas 5. Heat a heavy, flat baking tray.
To make the pastry, either rub the flour and butter together using your fingertips until it resembles breadcrumbs or measure the flour and butter into a food processor and briefly process until just rubbed in. Add the sugar and mix, then add the egg and a tablespoon of water. Process until the mixture just holds together (do not over work as it will make the pastry tough). Wrap in cling film and chill for 20 minutes.
Roll the pastry out on a floured surface and use it to line a 28cm/11in flan tin. Prick the base of the pastry using a fork then chill the pastry for 10 minutes.
Line the pastry case with parchment paper and fill with ceramic baking beans or uncooked rice. Place on the preheated baking tray and bake blind for about 15 minutes, or until the pastry is set and pale brown. Remove the beans and paper and return to the oven for about 10-12 minutes until the base is cooked.
For the filling, put the butter and sugar in a food processor and pulse until creamy (if you used a food processor for the pastry, there’s no need to wash it up). Add the eggs and blend, then mix in the ground almonds and almond extract.
Spread a thin layer of apricot jam over the base of the pastry and spoon the almond mixture on top. Bake for 30-40 minutes, until the filling is set. Remove from the oven and leave to cool.
For the decoration, gently poach the apricot halves in water until tender. Set aside to cool slightly.
Arrange the apricot halves in circles over the top of the tart. Warm the apricot jam over a low heat then pass through a fine sieve. Brush the warm apricot jam over the top of the fruit to glaze. Scatter over the flaked almonds. Serve the tart warm or cold.