You need to know what version of MAME the R-Pi port is based on then you can grab a dat and build a set up for it via a PC or you can just grab the roms regardless as long as they work with the version of MAME the Pi port uses
end result you need to know the version of MAME you are building the set for