{
    "app-id": "net.mediaarea.mediaconch-server",
    "sdk": "org.freedesktop.Sdk",
    "runtime": "org.freedesktop.Platform",
    "runtime-version": "1.4",
    "command": "mediaconchd",
    "finish-args": [ "--filesystem=host", "--share=network" ],

    "modules": [
        {
            "name": "libxml2",
            "config-opts": [ "--enable-shared", "--disable-static", "--without-python" ],
            "cleanup": [ "/bin", "/share", "/include", "/lib/cmake", "/lib/pkgconfig", "/lib/xml2Conf.sh" ],
            "sources": [
                { "type": "git", "url": "https://github.com/MediaArea/libxml2.git" }
            ]
        },
        {
            "name": "libxslt",
            "config-opts": [ "--enable-shared", "--disable-static", "--without-python" ],
            "cleanup": [ "/bin", "/share", "/include", "/lib/pkgconfig", "/lib/xslt2Conf.sh" ],
            "sources": [
                { "type": "git", "url": "https://github.com/MediaArea/libxslt.git" }
            ]
        },
        {
            "name": "libevent",
            "config-opts": [ "--enable-shared", "--disable-static" ],
            "cleanup": [ "/bin", "/include", "/lib/pkgconfig" ],
            "sources": [
                { "type": "git", "url": "https://github.com/MediaArea/libevent.git" }
            ]
        },
        {
            "name": "jansson",
            "config-opts": [ "--enable-shared", "--disable-static" ],
            "cleanup": [ "/include", "/lib/pkgconfig" ],
            "sources": [
                { "type": "git", "url": "https://github.com/MediaArea/jansson.git" },
                { "type": "script", "commands": [ "autoreconf --force --install" ] }
            ]
        },
        {
            "name": "libzen",
            "subdir": "Project/GNU/Library",
            "config-opts": [ "--enable-shared", "--disable-static" ],
            "cleanup": [ "/bin", "/include", "/lib/pkgconfig" ],
            "sources": [
                { "type": "git", "url": "https://github.com/MediaArea/ZenLib.git" }
            ]
        },
        {
            "name": "libmediainfo",
            "subdir": "Project/GNU/Library",
            "config-opts": [ "--enable-shared", "--disable-static", "--with-libcurl" ],
            "cleanup": [ "/bin", "/include", "/lib/pkgconfig" ],
            "sources": [
                { "type": "git", "url": "https://github.com/MediaArea/MediaInfoLib.git" }
            ]
        },
        {
            "name": "mediaconchd",
            "subdir": "Project/GNU/Server",
            "sources": [
                { "type": "git", "url": "https://github.com/MediaArea/MediaConch_SourceCode.git" }
            ]
        }
    ]
}
