An asymptotic preserving method for the linear transport equation on general meshes