app-id: com.mousepawmedia.omission default-branch: stable runtime: org.gnome.Platform runtime-version: "3.38" sdk: org.gnome.Sdk command: omission cleanup: - /include - /share/aclocal - /share/doc - /share/cmake - /share/man - "*.a" - "*.la" finish-args: - --filesystem=xdg-data - --share=ipc - --socket=x11 - --socket=wayland - --socket=pulseaudio #- --share=network # this may be needed if you use Kivy Garden flowers - --device=dri - --talk-name=org.freedesktop.DBus.Proprieties - --talk-name=org.freedesktop.IBus - --env=PYTHONPATH=${FLATPAK_DEST}/packages/python modules: # Dependencies of Kivy. Usually worth installing ANYWAY. - name: python3-dependencies buildsystem: simple build-commands: - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} docutils setuptools wheel sources: - type: file url: https://files.pythonhosted.org/packages/81/44/8a15e45ffa96e6cf82956dd8d7af9e666357e16b0d93b253903475ee947f/docutils-0.16-py2.py3-none-any.whl sha256: 0c5b78adfbf7762415433f5515cd5c9e762339e23369dbe8000d84a4bf4ab3af - type: file url: https://files.pythonhosted.org/packages/9e/d4/b99a960314121a003e9f39c61dfde01a1010bb47661e193a7722f7f32d52/setuptools-54.2.0-py3-none-any.whl sha256: b726461910b9ba30f077880c228bea22121aec50b172edf39eb7ff026c054a11 - type: file url: https://files.pythonhosted.org/packages/65/63/39d04c74222770ed1589c0eaba06c05891801219272420b40311cd60c880/wheel-0.36.2-py2.py3-none-any.whl sha256: 78b5b185f0e5763c26ca1e324373aadd49182ca90e825f7853f4b2509215dc0e - name: python3-pygments buildsystem: simple build-commands: - python3 setup.py install --prefix=${FLATPAK_DEST} --root=/ sources: - type: archive url: https://files.pythonhosted.org/packages/15/9d/bc9047ca1eee944cc245f3649feea6eecde3f38011ee9b8a6a64fb7088cd/Pygments-2.8.1.tar.gz sha256: 2656e1a6edcdabf4275f9a3640db59fd5de107d88e8663c5d4e9a0fa62f77f94 # Only used by Omission. (Omit if you're copying me.) - name: python3-appdirs buildsystem: simple build-commands: - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} appdirs sources: - type: file url: https://files.pythonhosted.org/packages/3b/00/2344469e2084fb287c2e0b57b72910309874c3245463acd6cf5e3db69324/appdirs-1.4.4-py2.py3-none-any.whl sha256: a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128 # We must install Kivy from sdist. - name: kivy buildsystem: simple build-commands: - python3 setup.py install --prefix=${FLATPAK_DEST} --root=/ sources: - type: archive url: https://files.pythonhosted.org/packages/12/96/091ddacafb84dd18555a32d860dbfaf9c806147aa30c6f3c8b93cb7bab97/Kivy-2.0.0.tar.gz sha256: d25e44eb44e43762b2fd0c5874e51954e0f1181fd9800d8a6756be6d084812d8 # Dependency of Kivy-Garden (even if you don't access the network) - name: python3-requests buildsystem: simple build-commands: - pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} requests sources: - type: file url: https://files.pythonhosted.org/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl sha256: f864054d66fd9118f2e67044ac8981a54775ec5b67aed0441892edb553d21da5 - type: file url: https://files.pythonhosted.org/packages/09/c6/d3e3abe5b4f4f16cf0dfc9240ab7ce10c2baa0e268989a4e3ec19e90c84e/urllib3-1.26.4-py2.py3-none-any.whl sha256: 2f4da4594db7e1e110a944bb1b551fdf4e6c136ad42e4234131391e21eb5b0df - type: file url: https://files.pythonhosted.org/packages/5e/a0/5f06e1e1d463903cf0c0eebeb751791119ed7a4b3737fdc9a77f1cdfb51f/certifi-2020.12.5-py2.py3-none-any.whl sha256: 719a74fb9e33b9bd44cc7f3a8d94bc35e4049deebe19ba7d8e108280cfd59830 - type: file url: https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl sha256: b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0 - type: file url: https://files.pythonhosted.org/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl sha256: c210084e36a42ae6b9219e00e48287def368a26d03a048ddad7bfee44f75871e # We must install Kivy-Garden from sdist - name: Kivy-Garden buildsystem: simple build-commands: - sed -i 's/from ez_setup import use_setuptools//g' setup.py # we do not need ez_setup, which accesses network - sed -i 's/use_setuptools()//g' setup.py # we do not need ez_setup, which accesses network - python3 setup.py install --prefix=${FLATPAK_DEST} --root=/ sources: - type: archive url: https://files.pythonhosted.org/packages/16/8c/7a20a487f0f0cc83f718d696ad85149fa5164afd54c69d4a39eb01088540/Kivy%20Garden-0.1.4.tar.gz sha256: 9b7d9de5efacbcd0c4b3dd873b30622a86093c9965aa47b523c7a32f3eb34610 # Runtime dependencies of Kivy - name: libXmu buildsystem: autotools sources: - type: archive url: https://github.com/freedesktop/libXmu/archive/libXmu-1.1.2.tar.gz sha256: fb1485a0ffcc360c0cc8fe18f54a2f49af6fc384da743c0b136ab99cc6c6e54c - name: xclip buildsystem: autotools sources: - type: archive url: https://github.com/astrand/xclip/archive/0.13.tar.gz sha256: ca5b8804e3c910a66423a882d79bf3c9450b875ac8528791fb60ec9de667f758 - name: mtdev buildsystem: autotools sources: - type: archive url: http://bitmath.org/code/mtdev/mtdev-1.1.6.tar.gz sha256: 1325f389a2f25cd5f5a8ea4d29aad24aa7c3ec30401d679400dd79eb9c0a8dbb # The final application - name: omission buildsystem: simple build-commands: - python3 setup.py install --prefix=${FLATPAK_DEST} --root=/ - install -Dm644 share/icons/${FLATPAK_ID}.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg - install -Dm644 share/applications/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop - install -Dm644 share/metainfo/${FLATPAK_ID}.appdata.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.appdata.xml sources: - type: git url: https://github.com/mousepawmedia/omission tag: v1.0.0