snap: Switch to deb packages of nodejs and python3-pygments
authorAnthony Fok <foka@debian.org>
Tue, 27 Apr 2021 15:00:04 +0000 (09:00 -0600)
committerAnthony Fok <foka@debian.org>
Tue, 27 Apr 2021 15:04:24 +0000 (09:04 -0600)
node/14/stable snap package is not available on ppc64el and s390x.

nodejs deb package currently at 10.19.0~dfsg-3ubuntu1
in Ubuntu 20.04 LTS (base: core20)

snap/snapcraft.yaml

index e87a5ab8f9a409c21fb961959465f51ccd21b26c..ecf7063efeb9ec8b8787287d6bb0152df7329887 100644 (file)
@@ -72,10 +72,14 @@ parts:
 
   node:
     plugin: nil
-    stage-snaps:
-      - node/14/stable
+    stage-packages:
+      - nodejs
+    organize:
+      usr/bin/: bin/
+      usr/lib/: lib/
     prime:
       - bin/node
+      - lib/*/lib*.so*
 
   pandoc:
     plugin: nil
@@ -90,17 +94,21 @@ parts:
       - bin/pandoc
 
   pygments:
-    plugin: python
-    python-packages: [Pygments]
+    plugin: nil
+    stage-packages:
+      - python3-pygments
+    organize:
+      usr/bin/: bin/
+      usr/lib/: lib/
     prime:
       - bin/pygmentize
       - lib/python*/site-packages/Pygments-*.dist-info/*
       - lib/python*/site-packages/pygments/*
-      - usr/bin/python*
-      - -usr/bin/python*m
-      - usr/lib/python*/*
-      - -usr/lib/python*/distutils/*
-      - -usr/lib/python*/email/*
-      - -usr/lib/python*/lib2to3/*
-      - -usr/lib/python*/tkinter/*
-      - -usr/lib/python*/unittest/*
+      - bin/python*
+      - -bin/python*m
+      - lib/python*/*
+      - -lib/python*/distutils/*
+      - -lib/python*/email/*
+      - -lib/python*/lib2to3/*
+      - -lib/python*/tkinter/*
+      - -lib/python*/unittest/*