HBO is staying in business with Lena Dunham.

The premium cabler has ordered “Max,” a half-hour comedy pilot from Dunham and the “Girls” team, set in the magazine world of the 1960s, Variety has learned.

The pilot, which Dunham will direct, is described as a comedy set in 1963 and revolving around the stirrings of second-wave feminism, as seen through the eyes of an ambitious magazine writer who stumbles her way into the women’s movement. Lisa Joyce (pictured above with Dunham) has been tapped to star.

Marking her first major leading role, Joyce’s credits include series “Billy & Billie” on DirecTV’s Audience Network, plus recurring gigs on “Boardwalk Empire,” “The Good Wife,” “SVU” and “The Following.”

The pilot was written by Murray Miller, a writer/exec producer on “Girls.” Dunham will serve as director and exec producer, along with Miller, Jenni Konner and Ilene Landress. The project has been in development for a while, but insiders say the network was awaiting the lead being cast, until making a decision on the formal pilot order.

“Max” is one of many female-centric comedies in the works at HBO. Sarah Silverman is set to star in and exec produce an untitled series about a pathologically honest woman having a modern mid-life crisis; Whitney Cummings has also landed an untitled pilot, inspired by Maureen Dowd’s book “Are Men Necessary?” focusing on modern relationships; and YouTube star Issa Rae landed a pilot “Insecure,” which is about the awkward experiences and racy tribulations of a modern-day African-American woman.

Dunham, who created “Girls,” previously alluded that the critically-acclaimed breakout may not extend past a sixth season, telling Variety, “I think America has a tendency to push shows past their due dates…I like the British model — in and out.” Meanwhile, “Max” will keep Dunham busy at HBO where the fifth season of “Girls” is set for a 2016 debut.

Dunham is repped by UTA. Joyce is repped by Gersh, Siren Song and Peikoff/Mahan.

Justin Kroll contributed to this report.