{
    "version": "15.2.0",
    "description": "GNU Compiler Collection and binutils",
    "homepage": "https://www.gnu.org/software/gcc/",
    "license": "GPL-3.0-or-later",
    "architecture": {
        "64bit": {
            "url": "https://nuwen.net/files/mingw/components-20.0.7z",
            "hash": "561d873b7f95dbb39a34b7ab00050dc6028808310a847721a8aea5e5b0bff1c9"
        }
    },
    "extract_dir": "components-20.0",
    "pre_install": [
        "Expand-7ZipArchive \"$dir\\binutils-*.7z\" \"$dir\"",
        "Expand-7ZipArchive \"$dir\\mingw-w64+gcc.7z\" \"$dir\"",
        "Get-ChildItem \"$dir\\*.7z\" | Remove-Item -Recurse -Force"
    ],
    "env_add_path": "bin",
    "env_set": {
        "C_INCLUDE_PATH": "$dir\\include",
        "CPLUS_INCLUDE_PATH": "$dir\\include"
    },
    "checkver": {
        "url": "https://nuwen.net/mingw.html",
        "regex": "(?sm)>GCC ([\\d.]+)</a>.*?components-(?<components>[\\d.]+).7z"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://nuwen.net/files/mingw/components-$matchComponents.7z"
            }
        },
        "extract_dir": "components-$matchComponents"
    }
}
