org.gajim.Gajim.Plugin.omemo.yaml 2.94 KB
Newer Older
André's avatar
André committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
id: org.gajim.Gajim.Plugin.omemo
runtime: org.gajim.Gajim
sdk: org.gnome.Sdk//3.30
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/
      - pip3 install --prefix=${FLATPAK_DEST} protobuf-3.6.1-py2.py3-none-any.whl
    sources:
      - type: file
        url: https://files.pythonhosted.org/packages/77/78/a7f1ce761e2c738e209857175cd4f90a8562d1bde32868a8cd5290d58926/protobuf-3.6.1-py2.py3-none-any.whl
        sha256: 196d3a80f93c537f27d2a19a4fafb826fb4c331b0b99110f985119391d170f96

  - name: python3-axolotl-curve25519
    ensure-writable:
      - easy-install.pth
    buildsystem: simple
    build-commands:
      - install -d ${FLATPAK_DEST}/lib/python3.7/site-packages/
      - python3 setup.py install --prefix=${FLATPAK_DEST}
    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
    ensure-writable:
      - easy-install.pth
      - setuptools.pth
    buildsystem: simple
    build-commands:
      - install -d ${FLATPAK_DEST}/lib/python3.7/site-packages/
      - python3 setup.py install --prefix=${FLATPAK_DEST}
    sources:
      - type: archive
        url: https://files.pythonhosted.org/packages/27/99/3b905f0061aba53526408d286e53cee3b00c9fd256eed7d21d5d41033690/python-axolotl-0.1.42.tar.gz
        sha256: ef78c2efabcd4c33741669334bdda04710a3ef0e00b653f00127acff6460a7f0

  - name: python3-qrcode
    buildsystem: simple
    build-commands:
      - install -d ${FLATPAK_DEST}/lib/python3.7/site-packages/
      - pip3 install --prefix=${FLATPAK_DEST} qrcode-6.0-py2.py3-none-any.whl
    sources:
      - type: file
        url: https://files.pythonhosted.org/packages/79/be/11999004f7e6e5db0fa410c2feacd67c07f472f4500fde0026101f31d0df/qrcode-6.0-py2.py3-none-any.whl
        sha256: de4ffc15065e6ff20a551ad32b6b41264f3c75275675406ddfa8e3530d154be3

  - 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
      - appstream-compose --basename=org.gajim.Gajim.Plugin.omemo --prefix=${FLATPAK_DEST} --origin=flatpak org.gajim.Gajim.Plugin.omemo
    sources:
      - type: archive
        url: https://ftp.gajim.org/plugins_releases/omemo_2.6.1.zip
        sha256: 52900457b10c55c2a7e4f67bb17861a1d769f909819e464fc3503842defb4b7f
      - type: file
        path: org.gajim.Gajim.Plugin.omemo.metainfo.xml
        sha256: d7ef976ee4239d5c6b0da7b5e3bcc85d99db7d860c0329347a9522e8a176c69e