Snapcraft: Rename SNAPCRAFT_* to new CRAFT_*
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Mon, 09 Oct 2023 16:41:10 +0200
changeset 124 9304b56075c2
parent 123 032aaa29f498
child 125 08331ced745f
Snapcraft: Rename SNAPCRAFT_* to new CRAFT_*
snap/snapcraft.yaml
--- a/snap/snapcraft.yaml	Sat Oct 07 17:37:00 2023 +0200
+++ b/snap/snapcraft.yaml	Mon Oct 09 16:41:10 2023 +0200
@@ -60,10 +60,10 @@
       - libgcc-s1
     override-pull: |
       snapcraftctl pull
-      snapcraftctl set-version `python3 $SNAPCRAFT_PART_SRC/version.py`
+      snapcraftctl set-version `python3 $CRAFT_PART_SRC/version.py`
     override-build: |
       snapcraftctl build
-      cp -a $SNAPCRAFT_PART_SRC $SNAPCRAFT_PART_INSTALL/beremiz
+      cp -a $CRAFT_PART_SRC $CRAFT_PART_INSTALL/beremiz
 
   matiec:
     # Matiec ST, SFC and IL compiler.
@@ -78,7 +78,7 @@
       - bison
     override-build: |
       autoreconf -i && ./configure && make
-      cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/matiec
+      cp -a $CRAFT_PART_BUILD $CRAFT_PART_INSTALL/matiec
 
   modbus:
     plugin: nil
@@ -89,7 +89,7 @@
       - automake
     override-build: |
       make
-      cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/Modbus
+      cp -a $CRAFT_PART_BUILD $CRAFT_PART_INSTALL/Modbus
 
   open62541:
     plugin: nil
@@ -100,7 +100,7 @@
       - cmake
     override-build: |
       mkdir build && cd build && cmake .. && make
-      cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/open62541
+      cp -a $CRAFT_PART_BUILD $CRAFT_PART_INSTALL/open62541
       
   inkscape:
     # CLI only, used in SVGHMI build
@@ -120,7 +120,7 @@
     source: .
     source-type: local
     override-build: |
-      cp $SNAPCRAFT_PART_SRC/revisions.txt $SNAPCRAFT_PART_INSTALL
+      cp $CRAFT_PART_SRC/revisions.txt $CRAFT_PART_INSTALL
 
 apps:
   ide: