Sorry the pics are a little fuzzy, but should help...
The cable hooks to the top stud, wraps around a small stamped plate on the brake shoe to the top of the adjusting pawl.
Most of the parts you should be able to get from the parts store, some of them in the HELP! / Dorman section