{
    "app-id": "org.equeim.Tremotesf",
    "runtime": "org.kde.Platform",
    "runtime-version": "6.8",
    "sdk": "org.kde.Sdk",
    "command": "tremotesf",
    "finish-args": [
        "--socket=fallback-x11",
        "--socket=wayland",
        "--share=ipc",
        "--share=network",
        "--device=dri",
        "--filesystem=host:ro",
        "--talk-name=org.kde.StatusNotifierWatcher",
        "--talk-name=org.freedesktop.FileManager1"
    ],
    "cleanup": [
        "/include",
        "/lib/cmake",
        "/lib/pkgconfig"
    ],
    "modules": [
        {
            "name": "cxxopts",
            "buildsystem": "cmake-ninja",
            "builddir": true,
            "config-opts": [
                "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
                "-DCXXOPTS_BUILD_EXAMPLES=OFF",
                "-DCXXOPTS_BUILD_TESTS=OFF"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://github.com/jarro2783/cxxopts/archive/refs/tags/v3.2.1.tar.gz",
                    "sha256": "841f49f2e045b9c6365997c2a8fbf76e6f215042dda4511a5bb04bc5ebc7f88a"
                }
            ]
        },
        {
            "name": "cpp-httplib",
            "buildsystem": "cmake-ninja",
            "builddir": true,
            "config-opts": [
                "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
                "-DHTTPLIB_REQUIRE_OPENSSL=ON"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://github.com/yhirose/cpp-httplib/archive/refs/tags/v0.20.0.tar.gz",
                    "sha256": "18064587e0cc6a0d5d56d619f4cbbcaba47aa5d84d86013abbd45d95c6653866"
                }
            ]
        },
        {
            "name": "tremotesf",
            "buildsystem": "cmake-ninja",
            "builddir": true,
            "build-options": {
                "env": {
                    "CTEST_OUTPUT_ON_FAILURE": "1",
                    "ASAN_OPTIONS": "detect_leaks=0"
                }
            },
            "config-opts": [
                "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
                "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON",
                "-DTREMOTESF_WITH_HTTPLIB=system",
                "-DTREMOTESF_ASAN=ON"
            ],
            "run-tests": true,
            "sources": [
                {
                    "type": "dir",
                    "path": "."
                }
            ]
        }
    ]
}
