I honestly don't see what this has to do with RetroPie.
Lr-mame2010 is a pre-compiled binary in RetroPie and is available to be installed from the setup script. And I'm almost 100% sure that the libretro cores have an option to disable the nag screen and warning screen within the RetroArch menu.