Seth Rogen and Michael Keaton are set to star in 'King of the Jungle'.

The two actors have been confirmed to appear in the dark comedy, which will be based on an article titled 'John McAfee's Last Stand' published in Wired magazine, according to Deadline.

The production is based on the true story of John McAfee the technology expert - who created the McAfee Antivirus software - and relocated to the jungle in Belize in Central America after he earned his fortune.

'King of the Jungle' will continue to explore how McAfee coped in the unusual location where he is believed to have founded a compound of ''guns, sex, and madness'', and how he slips into a life of crime and debauchery after US expatriate Gregory Viant Faull is found dead, which is a crime McAfee was believed to have committed, although he was not charged.

McAfee's story continues to capture his next move to Guatemala where he pleaded for asylum, feigned suffering from a heart attack and was deported back to America in 2012.

Johnny Depp was previously attached to star in the movie, directed and produced by Glenn Ficarra and John Requa.

The script has been penned by Scott Alexander and Larry Karaszewski.

Condé Nast's Jeremy Steckler is on hand to produce the movie alongside Charlie Gogolak, Glenn Ficarra and John Requa.