{
    "name": "gzdoom",
    "buildsystem": "cmake-ninja",
    "config-opts": [
        "-DCMAKE_BUILD_TYPE=Release"
    ],
    "cleanup": [
        "/lib/*.a",
        "/lib/*.la",
        "/lib/pkgconfig",
        "/include"
    ],
    "sources": [
        {
            "type": "git",
            "url": "https://github.com/zdoom/gzdoom.git",
            "tag": "g4.14.1",
            "commit": "ac58779e282f42093c2f7d47298db28203a58c15",
            "x-checker-data": {
                "type": "anitya",
                "project-id": 17531,
                "stable-only": true,
                "tag-template": "g$version"
            }
        },
        {
            "type": "patch",
            "path": "description.patch"
        },
        {
            "type": "shell",
            "commands": [
                "sed -i \"s/org.zdoom.GZDoom/${FLATPAK_ID}/g\" src/d_iwad.cpp"
            ]            
        }
    ],
    "modules": [
        "../linux-audio/libinstpatch.json",
        "../linux-audio/fluidsynth2.json",
        "./game-music-emu.json",
        "./zmusic.json",
        {
            "name": "libsndfile",
            "buildsystem": "autotools",
            "sources": [
                {
                    "type": "archive",
                    "url": "https://github.com/libsndfile/libsndfile/releases/download/1.2.2/libsndfile-1.2.2.tar.xz",
                    "sha256": "3799ca9924d3125038880367bf1468e53a1b7e3686a934f098b7e1d286cdb80e",
                    "x-checker-data": {
                        "type": "anitya",
                        "project-id": 13277,
                        "stable-only": true,
                        "url-template": "https://github.com/libsndfile/libsndfile/releases/download/$version/libsndfile-$version.tar.xz"
                  }
                }
            ]
        }
    ]
}
