snap: add snapcraft.yaml
authorAndrea Righi <andrea.righi@canonical.com>
Fri, 16 Jun 2023 07:32:32 +0000 (09:32 +0200)
committerAndrea Righi <andrea.righi@canonical.com>
Fri, 16 Jun 2023 10:33:50 +0000 (12:33 +0200)
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
.gitignore
snap/snapcraft.yaml [new file with mode: 0644]

index 664afd36731af3098b5afac2a54388619d687618..d30d00a458dde2f16cc8e742d0de49d7def706ca 100644 (file)
@@ -11,3 +11,4 @@ debian/annotations.*
 debian/annotations/
 debian/debhelper-build-stamp
 debian/files
+*.snap
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
new file mode 100644 (file)
index 0000000..c7d3a4b
--- /dev/null
@@ -0,0 +1,41 @@
+name: annotations
+summary: Tool to manage Ubuntu kernel .config
+description: |
+  This tool allows to store all the kernel .config information into a file called
+  annotations that contains all the Kconfig options for each supported
+  architecture and flavour and (optionally) a short description associated to
+  them. This works only with Ubuntu kernels at the moment.
+license: GPL-3.0
+website: https://github.com/arighi/annotations
+source-code: https://github.com/arighi/annotations
+
+base: core22
+type: app
+adopt-info: annotations
+confinement: strict
+
+apps:
+  annotations:
+    command: bin/annotations
+    plugs:
+      - home
+    aliases:
+      - annotations
+
+parts:
+  annotations:
+    build-packages:
+      - python3
+      - python3-setuptools
+    stage-packages:
+      - python3
+      - python3-argcomplete
+      - python3-pip
+      - python3-wheel
+    plugin: python
+    source: .
+    source-type: git
+    override-pull: |
+        craftctl default
+        craftctl set grade=stable
+        craftctl set version=$(python3 -m kconfig.version)