It has long been planned to write a couple of articles on the topic of assembling self-contained snap packages.
If anyone does not know, then the snapcraft technology is a package assembly similar to * .deb or * .rpm. But for a slight difference, the snap package is completely self-contained. That is, he does not need anything from the system at all. At the moment snap packages support such distributions as Arch, Debian, Fedora, Gentoo and itself the progenitor of this technology Ubuntu. There are about 5-6 distributions that support, but I did not check them. On the forums write that it works)).
In this article I will describe a little the configuration file for the assembly.