From a50dbe5f53080a2d6c94593752e376a5dc84904f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= <git@apitzsch.eu> Date: Sun, 2 Feb 2020 17:08:51 +0100 Subject: [PATCH] [syntax_highlight] Add flatpak manifest and metainfo --- ...Gajim.Plugin.syntax_highlight.metainfo.xml | 12 +++++++ ...g.gajim.Gajim.Plugin.syntax_highlight.yaml | 36 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 flatpak/org.gajim.Gajim.Plugin.syntax_highlight.metainfo.xml create mode 100644 flatpak/org.gajim.Gajim.Plugin.syntax_highlight.yaml diff --git a/flatpak/org.gajim.Gajim.Plugin.syntax_highlight.metainfo.xml b/flatpak/org.gajim.Gajim.Plugin.syntax_highlight.metainfo.xml new file mode 100644 index 00000000..649cc0bd --- /dev/null +++ b/flatpak/org.gajim.Gajim.Plugin.syntax_highlight.metainfo.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component type="addon"> + <id>org.gajim.Gajim.Plugin.syntax_highlight</id> + <extends>org.gajim.Gajim.desktop</extends> + <name>Source Code Syntax Highlight Plugin</name> + <summary>Source code syntax highlighting in the chat window</summary> + <url type="homepage">https://gajim.org/</url> + <metadata_license>CC-BY-SA-3.0</metadata_license> + <project_license>GPL-3.0</project_license> + <update_contact>gajim-devel_AT_gajim.org</update_contact> +</component> + diff --git a/flatpak/org.gajim.Gajim.Plugin.syntax_highlight.yaml b/flatpak/org.gajim.Gajim.Plugin.syntax_highlight.yaml new file mode 100644 index 00000000..1ee590ab --- /dev/null +++ b/flatpak/org.gajim.Gajim.Plugin.syntax_highlight.yaml @@ -0,0 +1,36 @@ +id: org.gajim.Gajim.Plugin.syntax_highlight +runtime: org.gajim.Gajim +sdk: org.gnome.Sdk//3.34 +build-extension: true +separate-locales: false +appstream-compose: false + +build-options: + env: + PYTHONPATH: /app/plugins/syntax_highlight/lib/python3.7/site-packages/ + +modules: + - name: python3-pygments + buildsystem: simple + build-commands: + - install -d ${FLATPAK_DEST}/lib/python3.7/site-packages/ + - pip3 install --prefix=${FLATPAK_DEST} --ignore-installed Pygments-2.5.2-py2.py3-none-any.whl + sources: + - type: file + url: https://files.pythonhosted.org/packages/be/39/32da3184734730c0e4d3fa3b2b5872104668ad6dc1b5a73d8e477e5fe967/Pygments-2.5.2-py2.py3-none-any.whl + sha256: 2a3fe295e54a20164a9df49c75fa58526d3be48e14aceba6d6b1e8ac0bfd6f1b + + - name: gajim-syntax_highlight + buildsystem: simple + build-commands: + - 'cp -R -t ${FLATPAK_DEST} *' + post-install: + - install -Dm644 --target-directory=${FLATPAK_DEST}/share/metainfo org.gajim.Gajim.Plugin.syntax_highlight.metainfo.xml + - appstream-compose --basename=org.gajim.Gajim.Plugin.syntax_highlight --prefix=${FLATPAK_DEST} --origin=flatpak org.gajim.Gajim.Plugin.syntax_highlight + sources: + - type: archive + url: https://ftp.gajim.org/plugins_releases/syntax_highlight_1.2.5.zip + sha256: cae16ea749ac3a12341591078c1eb4b6fc6e7dc8123c0964a77adba8285d68dc + - type: file + path: org.gajim.Gajim.Plugin.syntax_highlight.metainfo.xml + sha256: 8428357b9e51c0eba5d5749a134f4390d4933909f8afe5afaf5bbc958e96d552 -- GitLab