org.gajim.Gajim.Plugin.url_image_preview.yaml 1.04 KB
Newer Older
André's avatar
André committed
1 2
id: org.gajim.Gajim.Devel.Plugin.url_image_preview
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/url_image_preview/site-packages
André's avatar
André committed
11 12 13 14 15 16 17 18 19 20

modules:
  - modules/python3-pillow.yaml

  - name: gajim-url_image_preview
    buildsystem: simple
    build-commands:
      - 'cp -R -t ${FLATPAK_DEST} *'
    post-install:
      - install -Dm644 --target-directory=${FLATPAK_DEST}/share/metainfo org.gajim.Gajim.Plugin.url_image_preview.metainfo.xml
21
      - appstream-compose --basename=org.gajim.Gajim.Devel.Plugin.url_image_preview --prefix=${FLATPAK_DEST} --origin=flatpak org.gajim.Gajim.Plugin.url_image_preview
André's avatar
André committed
22 23
    sources:
      - type: archive
André's avatar
André committed
24 25
        url: https://ftp.gajim.org/plugins_releases/url_image_preview_2.6.1.zip
        sha256: 9e3959742681e58bda6a8cfbad07846f32559e0a066a3e3c33e1bdf031956327
André's avatar
André committed
26 27 28
      - type: shell
        commands:
          - sed -i "s+org.gajim.Gajim+org.gajim.Gajim.Devel+" org.gajim.Gajim.Plugin.*.metainfo.xml