Can be done with basic tools, did some brake shoes just the other week.
Get the biggest punch you have that'll fit in the hole in the linings, doesn't have to be the full size of the rivet but the bigger the better. Clamp this firmly in a vice.
Then I think I used a centre punch to start opening the rivet out. Followed by a rounded punch (which was actually a piece of hard steel rod shaped on the bench grinder, works fine) to get the rest of the shape. Finish with a very small ball peen hammer afterwards.
The results aren't as pretty as the factory did it, but they're tight and mushroomed over such that there's no question of them not working correctly.
Points worth noting...
You don't normally get any spare rivets in the kits, so you can't afford any mistakes.
Some shoes require longer rivets at the ends and longer rivets should be supplied for this, check which is which before it's too late.
Don't go hammering away madly and allow the shoe/lining to jump off the punch that you've got held in the vice. It can happen, and if the lining ends up on the punch rather than the rivet it'll break.
It isn't a job I like, but it is possible without any real tools. If there's a local brake place nearby that can do it (ideally bond them on), that's a better option.