Depending on the pickup you're speaking about;
Measure carefully, cut the leg to size, normally the base is thin enough to bend by hand, so you could just bend it with a pair of pliers.
Then you'd need to shape using a file and drill the holes.
This can get messy so I'd avoid it where possible.