Lattice-Boltzmann model for compressible perfect gases