Spicy Indian Pumpkin Chutney

Spicy Indian Pumpkin Chutney / 1kg pumpkin peeled and chopped into 1cm pieces4 large onions, again peeled and chopped into roughly 1cm pieces250g demerara sugar2 large bramley apple chopped into 1cm pieces3 medium red peppers chopped into cm pieces200g.