snap/snapcraft.yaml
changeset 124 9304b56075c2
parent 123 032aaa29f498
equal deleted inserted replaced
123:032aaa29f498 124:9304b56075c2
    58       - linux-libc-dev
    58       - linux-libc-dev
    59       - libgcc-9-dev
    59       - libgcc-9-dev
    60       - libgcc-s1
    60       - libgcc-s1
    61     override-pull: |
    61     override-pull: |
    62       snapcraftctl pull
    62       snapcraftctl pull
    63       snapcraftctl set-version `python3 $SNAPCRAFT_PART_SRC/version.py`
    63       snapcraftctl set-version `python3 $CRAFT_PART_SRC/version.py`
    64     override-build: |
    64     override-build: |
    65       snapcraftctl build
    65       snapcraftctl build
    66       cp -a $SNAPCRAFT_PART_SRC $SNAPCRAFT_PART_INSTALL/beremiz
    66       cp -a $CRAFT_PART_SRC $CRAFT_PART_INSTALL/beremiz
    67 
    67 
    68   matiec:
    68   matiec:
    69     # Matiec ST, SFC and IL compiler.
    69     # Matiec ST, SFC and IL compiler.
    70     # source tree is expected to be just aside snap directory
    70     # source tree is expected to be just aside snap directory
    71     plugin: nil
    71     plugin: nil
    76       - automake
    76       - automake
    77       - flex
    77       - flex
    78       - bison
    78       - bison
    79     override-build: |
    79     override-build: |
    80       autoreconf -i && ./configure && make
    80       autoreconf -i && ./configure && make
    81       cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/matiec
    81       cp -a $CRAFT_PART_BUILD $CRAFT_PART_INSTALL/matiec
    82 
    82 
    83   modbus:
    83   modbus:
    84     plugin: nil
    84     plugin: nil
    85     source: Modbus
    85     source: Modbus
    86     source-type: local
    86     source-type: local
    87     build-packages:
    87     build-packages:
    88       - build-essential
    88       - build-essential
    89       - automake
    89       - automake
    90     override-build: |
    90     override-build: |
    91       make
    91       make
    92       cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/Modbus
    92       cp -a $CRAFT_PART_BUILD $CRAFT_PART_INSTALL/Modbus
    93 
    93 
    94   open62541:
    94   open62541:
    95     plugin: nil
    95     plugin: nil
    96     source: open62541
    96     source: open62541
    97     source-type: local
    97     source-type: local
    98     build-packages:
    98     build-packages:
    99       - build-essential
    99       - build-essential
   100       - cmake
   100       - cmake
   101     override-build: |
   101     override-build: |
   102       mkdir build && cd build && cmake .. && make
   102       mkdir build && cd build && cmake .. && make
   103       cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/open62541
   103       cp -a $CRAFT_PART_BUILD $CRAFT_PART_INSTALL/open62541
   104       
   104       
   105   inkscape:
   105   inkscape:
   106     # CLI only, used in SVGHMI build
   106     # CLI only, used in SVGHMI build
   107     # GUI fails to launch couldn't find a way
   107     # GUI fails to launch couldn't find a way
   108     plugin: nil
   108     plugin: nil
   118     # Makefile generated "revisions.txt"
   118     # Makefile generated "revisions.txt"
   119     plugin: nil
   119     plugin: nil
   120     source: .
   120     source: .
   121     source-type: local
   121     source-type: local
   122     override-build: |
   122     override-build: |
   123       cp $SNAPCRAFT_PART_SRC/revisions.txt $SNAPCRAFT_PART_INSTALL
   123       cp $CRAFT_PART_SRC/revisions.txt $CRAFT_PART_INSTALL
   124 
   124 
   125 apps:
   125 apps:
   126   ide:
   126   ide:
   127     # Launcher for the IDE
   127     # Launcher for the IDE
   128     environment:
   128     environment: