SNAP: add Modbus source and dependencies
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Wed, 10 Aug 2022 16:06:06 +0200
changeset 82 90da520cbaa5
parent 81 a95b2fa896e9
child 83 db3f332d7144
SNAP: add Modbus source and dependencies
Makefile
snap/snapcraft.yaml
--- a/Makefile	Sat Aug 06 16:39:37 2022 +0200
+++ b/Makefile	Wed Aug 10 16:06:06 2022 +0200
@@ -51,7 +51,7 @@
 include $(src)/$(DIST).mk
 endif
 
-OWN_PROJECTS=beremiz matiec canfestival
+OWN_PROJECTS=beremiz matiec canfestival Modbus
 
 define get_revision
 $(1)_revision?=$(lastword $(shell grep $(1) $(src)/revisions.txt))
--- a/snap/snapcraft.yaml	Sat Aug 06 16:39:37 2022 +0200
+++ b/snap/snapcraft.yaml	Wed Aug 10 16:06:06 2022 +0200
@@ -95,6 +95,17 @@
       autoreconf -i && ./configure && make
       cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/matiec
 
+  modbus:
+    plugin: nil
+    source: Modbus
+    source-type: local
+    build-packages:
+      - build-essential
+      - automake
+    override-build: |
+      make
+      cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/Modbus
+
   open62541:
     plugin: nil
     source: open62541