{
  "id" : "com.github.Matoking.protontricks",
  "runtime" : "org.freedesktop.Platform",
  "runtime-version" : "25.08",
  "runtime-commit" : "a0b687431459280667d830df5c9d0f25e47b9b7d78f212a858eefac086ed2909",
  "sdk" : "org.freedesktop.Sdk",
  "sdk-commit" : "d1eb1c10d166e7a611e0f26d2332aa9265ce2d048b054dca07f7919258ee1a0b",
  "command" : "protontricks",
  "modules" : [
    {
      "name" : "python3-Pillow",
      "buildsystem" : "simple",
      "sources" : [
        {
          "only-arches" : [
            "x86_64"
          ],
          "url" : "https://files.pythonhosted.org/packages/67/ee/21d4e8536afd1a328f01b359b4d3997b291ffd35a237c877b331c1c3b71c/pillow-12.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
          "sha256" : "eedf4b74eda2b5a4b2b2fb4c006d6295df3bf29e459e198c90ea48e130dc75c3",
          "x-checker-data" : {
            "type" : "pypi",
            "name" : "pillow"
          },
          "type" : "file"
        },
        {
          "only-arches" : [
            "aarch64"
          ],
          "url" : "https://files.pythonhosted.org/packages/4b/6e/3ccb54ce8ec4ddd1accd2d89004308b7b0b21c4ac3d20fa70af4760a4330/pillow-12.2.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl",
          "sha256" : "5cdfebd752ec52bf5bb4e35d9c64b40826bc5b40a13df7c3cda20a2c03a0f5ed",
          "x-checker-data" : {
            "type" : "pypi",
            "name" : "pillow"
          },
          "type" : "file"
        }
      ],
      "build-commands" : [
        "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"Pillow\" --no-build-isolation"
      ]
    },
    {
      "name" : "python3-setuptools-scm",
      "buildsystem" : "simple",
      "sources" : [
        {
          "url" : "https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl",
          "sha256" : "09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759",
          "type" : "file"
        },
        {
          "url" : "https://files.pythonhosted.org/packages/a0/b9/1906bfeb30f2fc13bb39bf7ddb8749784c05faadbd18a21cf141ba37bff2/setuptools_scm-8.1.0-py3-none-any.whl",
          "sha256" : "897a3226a6fd4a6eb2f068745e49733261a21f70b1bb28fce0339feb978d9af3",
          "type" : "file"
        }
      ],
      "build-commands" : [
        "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"setuptools-scm\" --no-build-isolation"
      ]
    },
    {
      "name" : "vdf",
      "buildsystem" : "simple",
      "sources" : [
        {
          "url" : "https://files.pythonhosted.org/packages/96/60/6456b687cf55cf60020dcd01f9bc51561c3cc84f05fd8e0feb71ce60f894/vdf-3.4-py2.py3-none-any.whl",
          "sha256" : "68c1a125cc49e343d535af2dd25074e9cb0908c6607f073947c4a04bbe234534",
          "type" : "file"
        }
      ],
      "build-commands" : [
        "pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} vdf"
      ]
    },
    {
      "name" : "protontricks",
      "buildsystem" : "simple",
      "sources" : [
        {
          "url" : "https://github.com/Matoking/protontricks.git",
          "commit" : "3cc0e03484c631b187c2fc0cde5d6ea8772c6304",
          "type" : "git"
        },
        {
          "paths" : [
            "patches/protontricks/replace-stock-icon.patch",
            "patches/protontricks/rename-launchable.patch",
            "patches/protontricks/amend-description.patch",
            "patches/protontricks/revert-bwrap-launcher-dbus.patch"
          ],
          "type" : "patch"
        },
        {
          "path" : "icon_scalable.svg",
          "type" : "file"
        }
      ],
      "build-options" : {
        "env" : {
          "SETUPTOOLS_SCM_PRETEND_VERSION" : "1.14.1"
        }
      },
      "post-install" : [
        "install -Dm644 -t ${FLATPAK_DEST}/share/metainfo data/${FLATPAK_ID}.metainfo.xml",
        "rename protontricks ${FLATPAK_ID} ${FLATPAK_DEST}/share/applications/protontricks*.desktop"
      ],
      "modules" : [
        {
          "name" : "yad",
          "config-opts" : [
            "--enable-standalone"
          ],
          "sources" : [
            {
              "url" : "https://github.com/v1cont/yad/releases/download/v14.1/yad-14.1.tar.xz",
              "sha256" : "dde047a915cd8d3892c32b6ba031876f5cda673e01882c99613f043867c88133",
              "x-checker-data" : {
                "type" : "anitya",
                "project-id" : 5280,
                "url-template" : "https://github.com/v1cont/yad/releases/download/v$version/yad-$version.tar.xz"
              },
              "type" : "archive"
            }
          ],
          "modules" : [
            {
              "name" : "intltool",
              "sources" : [
                {
                  "url" : "https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz",
                  "sha256" : "67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd",
                  "type" : "archive"
                }
              ],
              "cleanup" : [
                "*"
              ]
            }
          ]
        },
        {
          "name" : "winetricks",
          "no-autogen" : true,
          "make-install-args" : [
            "PREFIX=$(FLATPAK_DEST)"
          ],
          "sources" : [
            {
              "url" : "https://github.com/Matoking/winetricks.git",
              "commit" : "a8b93ce18e471a711309bc935112000b37840e07",
              "type" : "git"
            }
          ],
          "modules" : [
            {
              "name" : "xterm",
              "sources" : [
                {
                  "url" : "https://github.com/ThomasDickey/xterm-snapshots.git",
                  "commit" : "ca62917121e2e8203cc994da88c7f421e477e40c",
                  "x-checker-data" : {
                    "type" : "anitya",
                    "project-id" : 5272,
                    "tag-template" : "xterm-$version",
                    "is-main-source" : true
                  },
                  "type" : "git"
                }
              ],
              "modules" : [
                {
                  "name" : "libXaw",
                  "sources" : [
                    {
                      "url" : "https://xorg.freedesktop.org/releases/individual/lib/libXaw-1.0.16.tar.gz",
                      "sha256" : "012f90adf8739f2f023d63a5fee1528949cf2aba92ef7ac1abcfc2ae9cf28798",
                      "x-checker-data" : {
                        "type" : "anitya",
                        "project-id" : 1766,
                        "url-template" : "https://xorg.freedesktop.org/releases/individual/lib/libXaw-$version.tar.gz"
                      },
                      "type" : "archive"
                    }
                  ],
                  "modules" : [
                    {
                      "name" : "xmu",
                      "sources" : [
                        {
                          "url" : "https://www.x.org/archive/individual/lib/libXmu-1.2.1.tar.xz",
                          "sha256" : "fcb27793248a39e5fcc5b9c4aec40cc0734b3ca76aac3d7d1c264e7f7e14e8b2",
                          "x-checker-data" : {
                            "type" : "anitya",
                            "project-id" : 1785,
                            "url-template" : "https://www.x.org/archive/individual/lib/libXmu-$version.tar.xz"
                          },
                          "type" : "archive"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "ncurses",
                  "config-opts" : [
                    "--with-shared",
                    "--without-manpageus",
                    "--with-abi-version=5"
                  ],
                  "sources" : [
                    {
                      "url" : "https://invisible-mirror.net/archives/ncurses/current/ncurses-6.5-20250830.tgz",
                      "sha256" : "519ec9f748d7f2873cf763394fc766a701967439610125ad0fbf76ab2c7510a5",
                      "x-checker-data" : {
                        "type" : "anitya",
                        "project-id" : 2057,
                        "url-template" : "https://invisible-mirror.net/archives/ncurses/current/ncurses-$version.tgz",
                        "versions" : {
                          ">=" : "6.5"
                        }
                      },
                      "type" : "archive"
                    }
                  ],
                  "cleanup" : [
                    "/bin",
                    "/include",
                    "/share",
                    "*.a"
                  ]
                }
              ]
            },
            {
              "name" : "7zip",
              "subdir" : "CPP/7zip/Bundles/Alone2",
              "buildsystem" : "simple",
              "sources" : [
                {
                  "url" : "https://github.com/ip7z/7zip.git",
                  "commit" : "5e96a8279489832924056b1fa82f29d5837c9469",
                  "x-checker-data" : {
                    "type" : "git",
                    "tag-pattern" : "^([\\d.]+)$"
                  },
                  "type" : "git"
                }
              ],
              "build-commands" : [
                "make -j $FLATPAK_BUILDER_N_JOBS -f makefile.gcc",
                "install -D ./_o/7zz -t /app/bin",
                "ln -s /app/bin/7zz /app/bin/7za",
                "ln -s /app/bin/7zz /app/bin/7z"
              ]
            },
            {
              "name" : "cabextract",
              "sources" : [
                {
                  "url" : "https://www.cabextract.org.uk/cabextract-1.11.tar.gz",
                  "sha256" : "b5546db1155e4c718ff3d4b278573604f30dd64c3c5bfd4657cd089b823a3ac6",
                  "x-checker-data" : {
                    "type" : "anitya",
                    "project-id" : 245,
                    "url-template" : "https://www.cabextract.org.uk/cabextract-$version.tar.gz"
                  },
                  "type" : "archive"
                }
              ],
              "build-options" : {
                "strip" : true
              }
            },
            {
              "name" : "unrar-free",
              "sources" : [
                {
                  "url" : "https://gitlab.com/bgermann/unrar-free/-/archive/0.3.3/unrar-free-0.3.3.tar.gz",
                  "sha256" : "e0d52bded7863b81cbc4313929d0ad2e4d2e449bf96c85b436658eda02c506a7",
                  "x-checker-data" : {
                    "type" : "anitya",
                    "project-id" : 243110,
                    "url-template" : "https://gitlab.com/bgermann/unrar-free/-/archive/$version/unrar-free-$version.tar.gz"
                  },
                  "type" : "archive"
                },
                {
                  "commands" : [
                    "autoreconf -vfi"
                  ],
                  "dest-filename" : "autogen.sh",
                  "type" : "script"
                }
              ],
              "post-install" : [
                "ln -s /app/bin/unrar-free /app/bin/unrar"
              ]
            },
            {
              "name" : "binutils-ar",
              "buildsystem" : "simple",
              "build-options" : {
                "strip" : true
              },
              "build-commands" : [
                "install -Dm755 /usr/bin/ar -t ${FLATPAK_DEST}/bin/",
                "install -Dm755 /usr/lib/$(gcc -print-multiarch)/libbfd-*.so -t ${FLATPAK_DEST}/lib/"
              ]
            },
            {
              "name" : "aria2",
              "config-opts" : [
                "--disable-libaria2",
                "--disable-websocket",
                "--without-sqlite3"
              ],
              "sources" : [
                {
                  "url" : "https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.xz",
                  "sha256" : "60a420ad7085eb616cb6e2bdf0a7206d68ff3d37fb5a956dc44242eb2f79b66b",
                  "x-checker-data" : {
                    "type" : "anitya",
                    "project-id" : 109,
                    "url-template" : "https://github.com/aria2/aria2/releases/download/release-$version/aria2-$version.tar.xz"
                  },
                  "type" : "archive"
                }
              ]
            }
          ]
        }
      ],
      "build-commands" : [
        "pip3 install --no-index --no-build-isolation --find-links=\\\"file://${PWD}\\\" --prefix=${FLATPAK_DEST} .",
        "rm ${FLATPAK_DEST}/bin/protontricks-desktop-install",
        "install -Dm644 icon_scalable.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg"
      ]
    },
    {
      "name" : "bundle-setup",
      "buildsystem" : "simple",
      "sources" : [
        {
          "path" : "ld.so.conf",
          "type" : "file"
        }
      ],
      "build-commands" : [
        "mkdir -p /app/share/steam/compatibilitytools.d",
        "mkdir -p /app/lib/i386-linux-gnu",
        "mkdir -p /app/lib/debug/lib/i386-linux-gnu",
        "mkdir -p /app/lib/i386-linux-gnu/GL",
        "install -Dm644 ld.so.conf /app/etc/ld.so.conf"
      ]
    }
  ],
  "cleanup" : [
    "*.a",
    "*.la",
    "/include",
    "/lib/pkgconfig",
    "/share/aclocal",
    "/share/man"
  ],
  "separate-locales" : false,
  "finish-args" : [
    "--share=ipc",
    "--socket=wayland",
    "--socket=x11",
    "--socket=pulseaudio",
    "--share=network",
    "--system-talk-name=org.freedesktop.NetworkManager",
    "--system-talk-name=org.freedesktop.UDisks2",
    "--device=all",
    "--allow=multiarch",
    "--allow=devel",
    "--allow=bluetooth",
    "--allow=per-app-dev-shm",
    "--env=LC_ADDRESS=C",
    "--env=LC_COLLATE=C",
    "--env=LC_MONETARY=C",
    "--env=LC_MEASUREMENT=C",
    "--env=LC_NAME=C",
    "--env=LC_NUMERIC=C",
    "--env=LC_TELEPHONE=C",
    "--env=ALSA_CONFIG_PATH=",
    "--unset-env=ALSA_CONFIG_PATH",
    "--env=MESA_GLSL_CACHE_DIR=",
    "--unset-env=MESA_GLSL_CACHE_DIR",
    "--env=STEAM_RUNTIME_PREFER_HOST_LIBRARIES=",
    "--unset-env=STEAM_RUNTIME_PREFER_HOST_LIBRARIES",
    "--env=STEAM_RUNTIME=",
    "--unset-env=STEAM_RUNTIME",
    "--env=STEAM_EXTRA_COMPAT_TOOLS_PATHS=/app/share/steam/compatibilitytools.d",
    "--env=PROTON_DEBUG_DIR=/var/tmp",
    "--env=XDG_CONFIG_DIRS=/etc/xdg:/usr/lib/x86_64-linux-gnu/GL:/usr/lib/i386-linux-gnu/GL",
    "--env=GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0:/app/lib32/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0:/usr/lib/i386-linux-gnu/gstreamer-1.0",
    "--require-version=1.0.0",
    "--filesystem=~/.var/app/com.valvesoftware.Steam",
    "--filesystem=~/.local/share/Steam",
    "--filesystem=~/.steam",
    "--filesystem=~/snap/steam",
    "--filesystem=~/.snap/data/steam",
    "--filesystem=xdg-desktop",
    "--filesystem=xdg-documents",
    "--filesystem=xdg-pictures",
    "--filesystem=xdg-music",
    "--filesystem=xdg-videos",
    "--filesystem=xdg-download"
  ],
  "add-extensions" : {
    "com.valvesoftware.Steam.CompatibilityTool" : {
      "directory" : "share/steam/compatibilitytools.d",
      "autodelete" : true,
      "no-autodownload" : true,
      "subdirectories" : true,
      "version" : "stable",
      "versions" : "stable;beta;test"
    },
    "org.freedesktop.Platform.Compat.i386" : {
      "directory" : "lib/i386-linux-gnu",
      "version" : "25.08"
    },
    "org.freedesktop.Platform.Compat.i386.Debug" : {
      "directory" : "lib/debug/lib/i386-linux-gnu",
      "no-autodownload" : true,
      "version" : "25.08"
    },
    "org.freedesktop.Platform.GL32" : {
      "directory" : "lib/i386-linux-gnu/GL",
      "add-ld-path" : "lib",
      "download-if" : "active-gl-driver",
      "enable-if" : "active-gl-driver",
      "autoprune-unless" : "active-gl-driver",
      "merge-dirs" : "vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d;vulkan/implicit_layer.d",
      "no-autodownload" : true,
      "version" : "1.4",
      "versions" : "25.08;25.08-extra;1.4"
    }
  },
  "source-date-epoch" : 1321009871,
  "x-gl-version" : "1.4",
  "x-gl-versions" : "25.08;25.08-extra;1.4"
}