view flatpak/org.salutatoi.Cagou.json @ 134:4549cf265131

flatpak: install D-Bus .service on each frontend: work around lack of dependency handling in Flatpak by installing D-Bus .service on each frontend. This works because all backend is included in the runtime, but we have to add backend permissions to all frontend, and set --own-name=org.salutatoi.SAT. Furthermore, if one frontend is removed, the symbolic link is removed and the backend will not be launched automatically anymore, even if other frontends are still there. The benefict of this method is that backend has not to be installed manually to use a frontend.
author Goffi <goffi@goffi.org>
date Sun, 15 Jul 2018 16:56:55 +0200
parents d7761eb3f20b
children 7272eafd0fad
line wrap: on
line source

{
    "app-id": "org.salutatoi.Cagou",
    "branch": "0.7.0a2",
    "runtime": "org.salutatoi.Platform",
    "runtime-version": "0.7.0a2",
    "sdk": "org.salutatoi.Sdk",
    "command": "cagou",
    "finish-args": [
        "--socket=session-bus",
        "--socket=x11",
        "--share=ipc",
        "--socket=wayland",
        "--share=network",
        "--filesystem=home",
        "--socket=session-bus",
        "--own-name=org.salutatoi.SAT"
    ],
    "modules": [
        {
            "name": "mtdev",
            "sources": [
                {
                    "type": "archive",
                    "url": "http://bitmath.org/code/mtdev/mtdev-1.1.5.tar.bz2",
                    "sha256": "6677d5708a7948840de734d8b4675d5980d4561171c5a8e89e54adf7a13eba7f"
                }
            ]
        },
        {
            "name": "xsel",
            "sources": [
                {
                    "type": "archive",
                    "url": "http://www.vergenet.net/~conrad/software/xsel/download/xsel-1.2.0.tar.gz",
                    "sha256": "b927ce08dc82f4c30140223959b90cf65e1076f000ce95e520419ec32f5b141c"
                }
            ]
        },
        {
            "name": "python2-cython",
            "buildsystem": "simple",
            "build-commands": [
                "python ./setup.py install --prefix=${FLATPAK_DEST}"
            ],
            "cleanup": [
                "/bin"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/d2/12/8ef44cede251b93322e8503fd6e1b25a0249fa498bebec191a5a06adbe51/Cython-0.28.4.tar.gz",
                    "sha256": "76ac2b08d3d956d77b574bb43cbf1d37bd58b9d50c04ba281303e695854ebc46"
                }
            ]
        },
        {
            "name": "python2-certifi",
            "buildsystem": "simple",
            "build-commands": [
                "python2 setup.py install --prefix=/app"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/4d/9c/46e950a6f4d6b4be571ddcae21e7bc846fcbb88f1de3eff0f6dd0a6be55d/certifi-2018.4.16.tar.gz",
                    "sha256": "13e698f54293db9f89122b0581843a782ad0934a4fe0172d2a980ba77fc61bb7"
                }
            ],
            "ensure-writable": [
                "/lib/python2.7/site-packages/easy-install.pth"
            ]
        },
        {
            "name": "python2-urllib3",
            "buildsystem": "simple",
            "build-commands": [
                "python2 setup.py install --prefix=/app"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/3c/d2/dc5471622bd200db1cd9319e02e71bc655e9ea27b8e0ce65fc69de0dac15/urllib3-1.23.tar.gz",
                    "sha256": "a68ac5e15e76e7e5dd2b8f94007233e01effe3e50e8daddf69acfd81cb686baf"
                }
            ],
            "ensure-writable": [
                "/lib/python2.7/site-packages/easy-install.pth"
            ]
        },
        {
            "name": "python2-chardet",
            "buildsystem": "simple",
            "build-commands": [
                "python2 setup.py install --prefix=/app"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz",
                    "sha256": "84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"
                }
            ],
            "ensure-writable": [
                "/lib/python2.7/site-packages/easy-install.pth"
            ]
        },
        {
            "name": "python2-requests",
            "buildsystem": "simple",
            "build-commands": [
                "python2 setup.py install --prefix=/app"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/54/1f/782a5734931ddf2e1494e4cd615a51ff98e1879cbe9eecbdfeaf09aa75e9/requests-2.19.1.tar.gz",
                    "sha256": "ec22d826a36ed72a7358ff3fe56cbd4ba69dd7a6718ffd450ff0e9df7a47ce6a"
                }
            ],
            "ensure-writable": [
                "/lib/python2.7/site-packages/easy-install.pth"
            ]
        },
        {
            "name": "python2-kivy-garden",
            "buildsystem": "simple",
            "build-commands": [
                "python2 setup.py install --prefix=/app"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/7d/68/decaee596ff8168a39432eb3949fc7c0be952ebb9467806823bffc165d48/kivy-garden-0.1.4.tar.gz",
                    "sha256": "c256f42788421273a08fbb0a228f0fb0e80dd86b629fb8c0920507f645be6c72"
                }
            ],
            "ensure-writable": [
                "/lib/python2.7/site-packages/easy-install.pth"
            ]
        },
        {
            "name": "python2-Kivy",
            "buildsystem": "simple",
            "build-commands": [
                "python2 setup.py install --prefix=/app"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/7d/8b/89d220b7f96dc2662b81319067f679b4cd73cda66f4aa850db5b6c6cfc7a/Kivy-1.10.1.tar.gz",
                    "sha256": "7ce9e88b75de47a3f1d52cbe6924c18cafc83fa102e54f6794d241746e93fdff"
                }
            ],
            "ensure-writable": [
                "/lib/python2.7/site-packages/easy-install.pth"
            ]
        },
        {
            "name": "python2-plyer",
            "buildsystem": "simple",
            "build-commands": [
                "python2 setup.py install --prefix=/app"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/c4/19/f7cf7658e0f671294d8675a0bcc5d76883e8e738cc1e78dd097e2ea5fa72/plyer-1.3.0.tar.gz",
                    "sha256": "bdc4d09d5c1c236025a32e4fb48a83a0caa5c48667b35de93db25c8f916ec750"
                }
            ],
            "ensure-writable": [
                "/lib/python2.7/site-packages/easy-install.pth"
            ]
        },
        {
            "name": "garden-contextmenu",
            "buildsystem": "simple",
            "build-commands": [
                "mkdir -p /app/lib/python2.7/site-packages/kivy/garden/contextmenu/",
                "cp -av . /app/lib/python2.7/site-packages/kivy/garden/contextmenu/"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://ftp.goffi.org/kivy_garden/contextmenu.zip",
                    "sha256": "2a6f9d631ba7f6b7f0a96cb6e9aa2483812b7a2fd5731e188d99c1fcce2bd620"
                }
            ]
        },
        {
            "name": "garden-modernmenu",
            "buildsystem": "simple",
            "build-commands": [
                "mkdir -p /app/lib/python2.7/site-packages/kivy/garden/modernmenu/",
                "cp -av . /app/lib/python2.7/site-packages/kivy/garden/modernmenu/"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://ftp.goffi.org/kivy_garden/modernmenu.zip",
                    "sha256": "283d3c143c7ac0b4fb1d555ae7d190a6b1348843213d4b514beb55f2e275a1b2"
                }
            ]
        },
        {
            "name": "cagou",
            "buildsystem": "simple",
            "build-commands": [
                "python2 setup.py install --prefix=/app",
                "install -D /usr/lib/python2.7/site-packages/sat-0.7.0a2-py2.7.egg/share/dbus-1/services/org.salutatoi.SAT.service /app/share/dbus-1/services/org.salutatoi.SAT.service"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/81/e8/8c967847465dc8f192bd97638ca696ca8990c7ad379ffd33b90fd334136d/cagou-0.7.0a1.tar.gz",
                    "sha256": "ecf3b9079758b0f27cb903b6d0564e1115cae873c2ae1dddbe888787ffcc557c"
                }
            ],
            "ensure-writable": [
                "/lib/python2.7/site-packages/easy-install.pth"
            ]
        }
    ]
}