A complex snap, and my first one

Hi guys.

I’m trying to make a snap out of this package that I maintain in AUR [1]. My intention is to stop maintaining it on AUR and move definitely to a snap package.

But… it’s a complex one. It has two dependencies that are old (Openssl 0.9,8 and WxGTK 2.8) that are not in Ubuntu 16.04 anymore. So, they need to be built specially for this snap.

The part for Openssl 0.9.8 is this:

plugin: autotools
source: https://github.com/openssl/openssl.git
source-type: git
source-depth: 1
source-branch: OpenSSL_0_9_8-stable

I didn’t test it yet, but I think that it should work.

My question is about the part for WxGTK 2.8. Look at the equivalent PKGBUILD for it: [2]. It’s quite complex, with lots of patches and special build instructions.

  • I believe I should use the nil plugin, right?
  • I also believe that I should move the build instructions to a separate shell script, right?

I would be grateful for any feedback you may have.


[1] https://aur.archlinux.org/packages/safesignidentityclient/
[2] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=wxwidgets2.8-light

Here’s a Wxwidgets part I implemented previously: https://github.com/vslavik/poedit/blob/c138464328994be4e335dedcc4faf227544e9627/snap/snapcraft.yaml#L254 , just FYI

1 Like

Thank you for the reply. I’ll need some time to wrap my mind around the concepts.