Prepare the squash.
Transfer the squash cubes into a saucepan and add the sugar. Stir. Cover with the lid and let it macerate overnight or for at least twelve hours.
After maceration, add the remaining ingredients.
Cook over low heat for one hour, stirring occasionally. When the jam is ready, ladle into containers.
For best flavour, wait for at least a week before using the jam.