Here's the definitive reference:
I recommend you also use other hardware packages as a guide.
You might also find this useful if you want to add support for Boards Manager installation:
As you work through the process feel free to come back here with specific questions.