NEW YORK — The Las Vegas ensemble comedy “Think Like a Man Too” topped a slow weekend at the summer box office with $30 million, besting blockbuster holdovers from last week and Clint Eastwood’s “Jersey Boys.”

The Kevin Hart sequel “Think Like a Man Too” narrowly edged out “22 Jump Street,” which earned $29 million in its second week of release, according to studio estimates Sunday. The DreamWorks animated film “How to Train Your Dragon 2” slid to third with $25.3 million.

The top three films are all sequels.

Moving into summer’s bigger competition actually diminished Sony Screen Gems’ “Think Like a Man Too.” The first film, also directed by Tim Story and starring mostly the same ensemble led by Hart, opened with $33.6 million in April 2012.

Warner Bros.’ “Jersey Boys,” Eastwood’s adaptation of the Tony-winning Broadway musical about Frankie Valli’s group, opened in fourth with $13.5 million. The film drew an overwhelmingly older audience.

Overall business at the multiplexes was down. “Think Like a Man Too” and “Jersey Boys” pale in comparison to the openings on the same frame last year, when “Monsters University” and “World War Z” led a weekend gross 38 percent higher.

The box office will get a boost next weekend when Paramount’s “Transformers: Age of Extinction” opens. The film, the fourth in the franchise and featuring a revamped cast led by Mark Wahlberg, is expected to be one of the summer’s biggest grossers.