org.gajim.Gajim.Plugin.omemo.yaml 3 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.36
André's avatar
André committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
build-extension: true
separate-locales: false
appstream-compose: false

build-options:
  env:
    PYTHONPATH: /app/plugins/omemo/lib/python3.7/site-packages/

modules:
  - modules/python3-pillow.yaml

  - name: protobuf
    buildsystem: simple
    build-commands:
      - install -d ${FLATPAK_DEST}/lib/python3.7/site-packages/
André's avatar
André committed
19
      - pip3 install --prefix=${FLATPAK_DEST} protobuf-3.11.3-py2.py3-none-any.whl
André's avatar
André committed
20 21
    sources:
      - type: file
André's avatar
André committed
22 23
        url: https://files.pythonhosted.org/packages/27/9c/ef816295b4b40298fd0a17bf8f0ba6cf3e0c44cb2ce72257168e09996b8b/protobuf-3.11.3-py2.py3-none-any.whl
        sha256: 24e3b6ad259544d717902777b33966a1a069208c885576254c112663e6a5bb0f
André's avatar
André committed
24 25 26 27 28

  - name: python3-axolotl-curve25519
    buildsystem: simple
    build-commands:
      - install -d ${FLATPAK_DEST}/lib/python3.7/site-packages/
29
      - pip3 install --prefix=${FLATPAK_DEST} .
André's avatar
André committed
30 31 32 33 34 35 36 37 38
    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:
      - install -d ${FLATPAK_DEST}/lib/python3.7/site-packages/
39
      - pip3 install --prefix=${FLATPAK_DEST} python_axolotl-0.2.3-py3-none-any.whl
André's avatar
André committed
40
    sources:
41 42 43
      - 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
44 45 46 47 48

  - name: python3-qrcode
    buildsystem: simple
    build-commands:
      - install -d ${FLATPAK_DEST}/lib/python3.7/site-packages/
49
      - pip3 install --prefix=${FLATPAK_DEST} qrcode-6.1-py2.py3-none-any.whl
André's avatar
André committed
50 51
    sources:
      - type: file
52 53
        url: https://files.pythonhosted.org/packages/42/87/4a3a77e59ab7493d64da1f69bf1c2e899a4cf81e51b2baa855e8cc8115be/qrcode-6.1-py2.py3-none-any.whl
        sha256: 3996ee560fc39532910603704c82980ff6d4d5d629f9c3f25f34174ce8606cf5
André's avatar
André committed
54 55 56 57 58 59 60

  - 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
61
      - appstream-compose --basename=org.gajim.Gajim.Devel.Plugin.omemo --prefix=${FLATPAK_DEST} --origin=flatpak org.gajim.Gajim.Plugin.omemo
André's avatar
André committed
62 63
    sources:
      - type: archive
André's avatar
André committed
64 65
        url: https://ftp.gajim.org/plugins_releases/omemo_2.6.74.zip
        sha256: 99713943fd5a3fb51d9ce0f2920ce30323441744dafa42b132bbc2863475232d
André's avatar
André committed
66 67
      - type: file
        path: org.gajim.Gajim.Plugin.omemo.metainfo.xml
68
        sha256: 795eabeddcee3338a627f84068ee07e8221cca4ae91c08030ffb57fdcccf750b
André's avatar
André committed
69 70 71
      - type: shell
        commands:
          - sed -i "s+org.gajim.Gajim+org.gajim.Gajim.Devel+" org.gajim.Gajim.Plugin.*.metainfo.xml