snap/snapcraft.yaml
author etisserant <edouard.tisserant@gmail.com>
Sun, 27 Nov 2022 19:03:03 +0100
changeset 108 6719149ae58f
parent 106 cf158979ecae
child 123 032aaa29f498
permissions -rw-r--r--
HG CD: beremiz revision bump.
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     1
name: beremiz
101
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
     2
adopt-info: beremiz
106
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
     3
title: Beremiz
101
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
     4
summary: Beremiz Open Source PLC.
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     5
description: |
106
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
     6
  Beremiz is a framework for machine automation. It is meant to add PLC-like programing to embedded systems.
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
     7
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
     8
  Beremiz is [Free Software](https://en.wikipedia.org/wiki/Free_software), and conforms to
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
     9
  [IEC_61131](https://en.wikipedia.org/wiki/IEC_61131-3) and [PLCopen](https://plcopen.org/technical-activities/xml-exchange) among other standards.
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    10
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    11
  Beremiz supports all languages described in IEC_61131:
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    12
  * Structured Text (ST)
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    13
  * Instruction List (IL)
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    14
  * Function Block Diagram (FBD)
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    15
  * Sequencial Function Chart (SFC)
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    16
  * Ladder Diagram (LD)
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    17
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    18
  IDE also includes tools to create Human-Machine Interfaces (HMI), and to connect your PLC programs to existing supervisions, databases, or fieldbuses:
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    19
  * Modbus
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    20
  * OPC-UA
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    21
  * CANopen
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    22
  * SVG HMI
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    23
  * Wx HMI
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    24
  * Python
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    25
  * ...
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    26
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    27
  Runtime can be programmed remotely and allows variables tracing and forcing.
cf158979ecae Snap: better description
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 101
diff changeset
    28
101
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
    29
icon: snap/gui/beremiz.png
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
    30
contact: 
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
    31
  - https://beremiz.org
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
    32
  - snap@beremiz.fr
81
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    33
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    34
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    35
grade: devel
101
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
    36
confinement: strict
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    37
base: core20
101
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
    38
architectures: [amd64, arm64]
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    39
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    40
parts:
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    41
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    42
  python-deps:
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    43
    # This part provides all python2 dependencies, including interpreter
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    44
    # More particularily, it builds latest PIP supporting python2 from git
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    45
    # and uses it to collect and buid other Beremiz dependencies.
81
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    46
    #
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    47
    # rational:
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    48
    #  - python plugin doesn't support python2 anymore on core20+
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    49
    #  - attempts to get python2+pip+virtualenv in a core20 based snap failed
81
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    50
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    51
    plugin: nil
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    52
    source: https://github.com/pypa/pip/archive/refs/tags/20.3.4.tar.gz
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    53
    build-packages:
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    54
      - libssl-dev
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    55
      - libgtk-3-dev
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    56
      - libgl1-mesa-dev
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    57
      - libglu1-mesa-dev
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    58
      - python2-dev
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    59
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    60
    stage-packages:
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    61
      - python2
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    62
      - python-setuptools
86
3564991cd359 SNAP: replace lxml versions to be compatible with Beremiz.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 82
diff changeset
    63
      - python-lxml
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    64
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    65
    override-build: |
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    66
      # For some reasons site-packages needs to be created and 
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    67
      # added to PYTHONPATH during PIP (own) build.
81
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    68
      # Apparently not anymore when snap is executed.
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    69
      mkdir $SNAPCRAFT_PART_INSTALL/usr/lib/python2.7/site-packages
81
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    70
      PYTHONPATH=$SNAPCRAFT_PART_INSTALL/usr/lib/python2.7/site-packages \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    71
        $SNAPCRAFT_PART_INSTALL/usr/bin/python2 $SNAPCRAFT_PART_SRC/setup.py \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    72
            install --prefix $SNAPCRAFT_PART_INSTALL/usr
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    73
      PYTHONPATH=$SNAPCRAFT_PART_INSTALL/usr/lib/python2.7/site-packages \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    74
        $SNAPCRAFT_PART_INSTALL/usr/bin/pip install \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    75
          future              \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    76
          matplotlib          \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    77
          msgpack_python      \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    78
          u-msgpack-python    \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    79
          zeroconf2           \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    80
          enum34              \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    81
          pyro                \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    82
          sslpsk              \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    83
          posix_spawn         \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    84
          twisted             \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    85
          nevow               \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    86
          autobahn            \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    87
          click               \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    88
          opcua               \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    89
          pycountry           \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    90
          fonttools           \
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    91
          Brotli              \
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    92
          wxPython==4.1.1
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    93
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    94
  beremiz:
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    95
    # Beremiz python source + GCC toolchain
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    96
    # source tree is expected to be just aside snap directory
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    97
    plugin: nil
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    98
    source: beremiz
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    99
    source-type: local
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   100
    stage-packages:
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   101
      - gcc
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   102
      - libc6
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   103
      - libc6-dev
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   104
      - linux-libc-dev
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   105
      - libgcc-9-dev
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   106
      - libgcc-s1
101
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
   107
    override-pull: |
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
   108
      snapcraftctl pull
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
   109
      snapcraftctl set-version `python2 $SNAPCRAFT_PART_SRC/version.py`
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   110
    override-build: |
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   111
      cp -a $SNAPCRAFT_PART_SRC $SNAPCRAFT_PART_INSTALL/beremiz
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   112
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   113
  matiec:
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   114
    # Matiec ST, SFC and IL compiler.
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   115
    # source tree is expected to be just aside snap directory
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   116
    plugin: nil
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   117
    source: matiec
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   118
    source-type: local
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   119
    build-packages:
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   120
      - build-essential
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   121
      - automake
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   122
      - flex
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   123
      - bison
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   124
    override-build: |
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   125
      autoreconf -i && ./configure && make
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   126
      cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/matiec
81
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   127
82
90da520cbaa5 SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 81
diff changeset
   128
  modbus:
90da520cbaa5 SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 81
diff changeset
   129
    plugin: nil
90da520cbaa5 SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 81
diff changeset
   130
    source: Modbus
90da520cbaa5 SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 81
diff changeset
   131
    source-type: local
90da520cbaa5 SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 81
diff changeset
   132
    build-packages:
90da520cbaa5 SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 81
diff changeset
   133
      - build-essential
90da520cbaa5 SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 81
diff changeset
   134
      - automake
90da520cbaa5 SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 81
diff changeset
   135
    override-build: |
90da520cbaa5 SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 81
diff changeset
   136
      make
90da520cbaa5 SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 81
diff changeset
   137
      cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/Modbus
90da520cbaa5 SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 81
diff changeset
   138
81
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   139
  open62541:
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   140
    plugin: nil
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   141
    source: open62541
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   142
    source-type: local
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   143
    build-packages:
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   144
      - build-essential
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   145
      - cmake
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   146
    override-build: |
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   147
      mkdir build && cd build && cmake .. && make
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   148
      cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/open62541
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   149
      
81
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   150
  inkscape:
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   151
    # CLI only, used in SVGHMI build
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   152
    # GUI fails to launch couldn't find a way
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   153
    plugin: nil
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   154
    stage-packages:
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   155
      - inkscape
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   156
      - libgtk-3-0 
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   157
      # libgtk3 needs to be explicitely given
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   158
      # otherwise wxGtk doesn't start, with this error :
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   159
      # libgtk-3.so.0: undefined symbol: pango_font_family_get_face
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   160
      # ... why ?
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   161
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   162
  revisiontxt:
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   163
    # Makefile generated "revisions.txt"
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   164
    plugin: nil
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   165
    source: .
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   166
    source-type: local
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   167
    override-build: |
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   168
      cp $SNAPCRAFT_PART_SRC/revisions.txt $SNAPCRAFT_PART_INSTALL
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   169
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   170
apps:
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   171
  ide:
81
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   172
    # Launcher for the IDE
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   173
    environment:
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   174
      SYSROOT: $SNAP
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   175
    command: usr/bin/python2 $SNAP/beremiz/Beremiz.py
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   176
    extensions: [gnome-3-38]
101
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
   177
    plugs:
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
   178
      - network
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
   179
      - network-bind
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   180
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   181
  beremiz:
81
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   182
    # Beremiz Command Line interface
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   183
    environment:
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   184
      SYSROOT: $SNAP
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
   185
    command: usr/bin/python2 $SNAP/beremiz/Beremiz_cli.py
101
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
   186
    plugs:
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
   187
      - network
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
   188
      - network-bind
81
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   189
 
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   190
  runtime:
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   191
    # Standalone runtime
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   192
    environment:
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   193
      SYSROOT: $SNAP
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
   194
    command: usr/bin/python2 $SNAP/beremiz/Beremiz_service.py
101
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
   195
    plugs:
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
   196
      - network
5799370243c0 Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 86
diff changeset
   197
      - network-bind
86
3564991cd359 SNAP: replace lxml versions to be compatible with Beremiz.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 82
diff changeset
   198