It's a little easier, because what you really need to do is get the lens in A mode. Once it's there, it can stay there. If you want to use the aperture ring, get an M.
Here is a good description of the process, except he had better luck with reassembly than I sometimes have:
Pentax 50mm lens fix
When you reassemble the lens, you slide the aperture ring partly on, tuck one of those metal springs under it, slide it on more, tuck the ball bearing under it, slide more and tuck the final spring under. Then it goes on fully.
I think you can leave out the metal spring tabs and still end up with a lens that works as the first post suggests. The ball bearing is sort of optional too; it just makes the aperture ring click between stops. If you never move the ring from A, it's not useful. Resale value is less, though.