You could backport the packages in a PPA and use that PPA during build or you could build it plainly from source during your build process from the snapcraft.yaml
You could backport the packages in a PPA and use that PPA during build or you could build it plainly from source during your build process from the snapcraft.yaml