Heat the oven to 180C/fan160C/gas 4. Butter an oblong cake tin (about 31 x 17 x 3cm). Tip the flour, ground almonds, butter and sugar into a food processor and whizz just until the butter is evenly distributed - or rub together by hand. Remove 85g/3oz of the mix, stir in the coconut and put to one side. Add the eggs to the remaining mixture in the food processor and whizz quickly - or mix with a wooden spoon. It doesn’t need to be very smooth.
Spread this mixture over the base of the tin, then scatter half the raspberries over the top. Sprinkle with the coconut mixture and bake for 45 mins. Dot the remaining fruit over the surface and cook for a further 15 mins, until firm to the touch. Cool in the tin and cut into slices, squares, whichever shape you want. They will keep for up to 2 days in the fridge.