id: org.gajim.Gajim.Devel.Plugin.openpgp runtime: org.gajim.Gajim.Devel sdk: org.gnome.Sdk//50 build-extension: true separate-locales: false appstream-compose: false build-options: env: PIP_TARGET: /app/plugins/openpgp/site-packages PIP_DISABLE_PIP_VERSION_CHECK: "1" modules: - name: swig cleanup: - "*" build-options: prefix: ${FLATPAK_DEST} sources: - type: archive url: https://downloads.sourceforge.net/swig/swig-4.4.1.tar.gz sha256: 40162a706c56f7592d08fd52ef5511cb7ac191f3593cf07306a0a554c6281fcf - name: python3-gpgme buildsystem: simple build-options: env: SWIG_LIB: "/app/plugins/openpgp/share/swig/4.4.1" prepend-path: "/app/plugins/openpgp/bin:" build-commands: - sed -e 's|, \"swig\"||' -i pyproject.toml - autoreconf -fiv - ./configure # Required to set the version number - mv src gpg - pip3 install --no-build-isolation . sources: - type: git url: https://dev.gnupg.org/source/gpgmepy.git tag: gpgmepy-2.0.0 commit: 22e1cd5fdea1f62690fba55cf616bde97c1ac5d3 - name: gajim-openpgp buildsystem: simple build-commands: - 'cp -R -t ${FLATPAK_DEST} *' post-install: - install -Dm644 --target-directory=${FLATPAK_DEST}/share/metainfo org.gajim.Gajim.Plugin.openpgp.metainfo.xml - appstreamcli compose --components=${FLATPAK_ID} --prefix=/ --origin=${FLATPAK_ID} --result-root=${FLATPAK_DEST} --data-dir=${FLATPAK_DEST}/share/app-info/xmls ${FLATPAK_DEST} sources: - type: archive strip-components: 0 url: https://ftp.gajim.org/plugins/master/openpgp/openpgp_1.8.1.zip sha256: 3a166ce42f84afc591200759eaa3e26f7b0e74b10bbf8a0c25813039be28b1d5 - type: shell commands: - sed -i "s+org.gajim.Gajim+org.gajim.Gajim.Devel+" org.gajim.Gajim.Plugin.*.metainfo.xml