To create a Site Definition in visual studio 2010 is much easier. Just create a project using site definition template.

You can follow this Walkthrough: Create a Basic Site Definition Project also this blog.

Here is the Walkthrough: Creating a Site Definition with Additional Content

But here is gotcha, once you press F5, you may not see the template in the SharePoint Customizations tab. You will need to do IISRESET.