Linear-scaling first-principles study of a quasicrystalline molecular material