org.gajim.Gajim.Plugin.omemo.yaml 2.52 KB
Newer Older
André's avatar
André committed
1 2
id: org.gajim.Gajim.Devel.Plugin.omemo
runtime: org.gajim.Gajim.Devel
André's avatar
André committed
3
sdk: org.gnome.Sdk//3.38
André's avatar
André committed
4 5 6 7 8 9
build-extension: true
separate-locales: false
appstream-compose: false

build-options:
  env:
10
    PIP_TARGET: /app/plugins/omemo/site-packages
André's avatar
André committed
11 12 13 14 15 16 17

modules:
  - modules/python3-pillow.yaml

  - name: protobuf
    buildsystem: simple
    build-commands:
18
      - pip3 install --no-deps protobuf-3.13.0-py2.py3-none-any.whl
André's avatar
André committed
19 20
    sources:
      - type: file
21 22
        url: https://files.pythonhosted.org/packages/3b/ba/276d817d4b0184e544a9295e14e95f6148af5c5652033d30eb63d2c13bfa/protobuf-3.13.0-py2.py3-none-any.whl
        sha256: d69697acac76d9f250ab745b46c725edf3e98ac24763990b24d58c16c642947a
André's avatar
André committed
23 24 25 26

  - name: python3-axolotl-curve25519
    buildsystem: simple
    build-commands:
27
      - pip3 install .
André's avatar
André committed
28 29 30 31 32 33 34 35
    sources:
      - type: archive
        url: https://files.pythonhosted.org/packages/59/ca/c8111718bcc8da18e9b9868e784293232a58c57159a5ea18f00ee967258f/python-axolotl-curve25519-0.4.1.post2.tar.gz
        sha256: 0705a66297ebd2f508a60dc94e22881c754301eb81db93963322f6b3bdcb63a3

  - name: python3-axolotl
    buildsystem: simple
    build-commands:
36
      - pip3 install --no-deps python_axolotl-0.2.3-py3-none-any.whl
André's avatar
André committed
37
    sources:
38 39 40
      - type: file
        url: https://files.pythonhosted.org/packages/0f/b3/4a0b0e664435691bba36fac6e366cece506d002294c293bd3dcb40c2b2ba/python_axolotl-0.2.3-py3-none-any.whl
        sha256: 6a22acbf646c3b736ea1a4663ab5c52687fce6612e92ae6a7fe63803c212fb9e
André's avatar
André committed
41 42 43 44

  - name: python3-qrcode
    buildsystem: simple
    build-commands:
45
      - pip3 install --no-deps qrcode-6.1-py2.py3-none-any.whl
André's avatar
André committed
46 47
    sources:
      - type: file
48 49
        url: https://files.pythonhosted.org/packages/42/87/4a3a77e59ab7493d64da1f69bf1c2e899a4cf81e51b2baa855e8cc8115be/qrcode-6.1-py2.py3-none-any.whl
        sha256: 3996ee560fc39532910603704c82980ff6d4d5d629f9c3f25f34174ce8606cf5
André's avatar
André committed
50 51 52 53 54 55 56

  - name: gajim-omemo
    buildsystem: simple
    build-commands:
      - 'cp -R -t ${FLATPAK_DEST} *'
    post-install:
      - install -Dm644 --target-directory=${FLATPAK_DEST}/share/metainfo org.gajim.Gajim.Plugin.omemo.metainfo.xml
57
      - appstream-compose --basename=org.gajim.Gajim.Devel.Plugin.omemo --prefix=${FLATPAK_DEST} --origin=flatpak org.gajim.Gajim.Plugin.omemo
André's avatar
André committed
58 59
    sources:
      - type: archive
André's avatar
André committed
60 61
        url: https://ftp.gajim.org/plugins_releases/omemo_2.7.9.zip
        sha256: 7f2c585d656a4cb27bf67dc1920714d4c7089ebe9620e34015f6f6eccb1651a7
André's avatar
André committed
62 63 64
      - type: shell
        commands:
          - sed -i "s+org.gajim.Gajim+org.gajim.Gajim.Devel+" org.gajim.Gajim.Plugin.*.metainfo.xml