Everyone has the right idea. The only bicycle hubs I have replace cups on were Schwinn Deluxe (#7 bearing) and the Schwinn large flange heavy duty (1/4" loose bearing) because you could easily purchase replacement cups. I guess if you could salvage a donor cup, the same concept could be used on an aluminum lightweight hub. FYI, an aluminum hub should be very easy because of the difference in expansion rate between aluminum and the steel cup. Get your knock-out tool ready, toss a little propane heat onto the inside hub body cup area and have at it. You do not need much heat to expand the aluminum. Have your replacement cup ready to drop in while it's still hot. I'd bet every manufacturer of hubs had a different "outside" cup size.
Schwinn actually offered a knockout tool to remove the pressed in bearing cup on a deluxe hub. It was just a 1/4" rod that was smashed on one end. The smashed end pultruded about 1/4", or just enough to catch the inside flange of the cup from the opposite side of the wheel. Lay the wheel flat on the bench supported by a 2 by 4 for protection. If you were lucky enough the cup came out in one piece. That was usually not the case because it would crack where the bearings had worn it down. Now you had just the outer ring of the cup left. We had two very old rim bending levers. The end of the handles was ground to a sharp lip. I would hook the end of the rim straightener on the broken cup remnants and they always popped right out. It's the angle of your tool to the work that makes this stuff work, not how hard you hit it.
The Schwinn knockout punch was a cheap tool, they got bent, and straightened, over and over. It's might have been a onetime use tool. We usually made our own knockout punch by taking a long shackle Master bicycle pad lock, the kind that went through the spokes. You cut the shackle off, then cut that piece into two pieces right in the middle. You shortened the bend dog leg until it just fit through the cup and the long end was sticking out the opposite side. It worked better than the Schwinn tool, and was a little thicker. We also made some cup knockout tools from hardened drill rod available at any industrial hardware store. The common soft rod is a waste of time for this job.
After you get it out, you will need to have some kind of a press to pull the replacement cups back in. It could be as simple as two sockets that sit into the cup, a few flat washers to spread the load, an axle with greased threads and two axle nuts. Make sure the cup pulls in straight and not at a angle. I'd put a thin coating of Anti seize on the hole your pressing the cup into to help with friction. Someone will post a photo of the Schwinn Deluxe cup installation tool. But the two sockets will do the very same thing.