I developed this using Sc 8.1.151207. Though it should work on other versions too as long as you reinstall the Glass.Mapper libraries to get the right dlls and configuration.
- Add Sitecore dlls to /Depends/Sitecore/ (Sitecore.ContentSearch, Sitecore.ContentSearch.Linq, Sitecore.Kernel, Sitecore.Mvc)
- Create a clean Sitecore site (ie using SIM)
- Modify publishing target to match the Website folder of the clean Sitecore site
- Install package
Blog about this post coming soon.