{
 "app_id": "com.github.Matoking.protontricks",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.Matoking.protontricks/master/com.github.Matoking.protontricks.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=x11",
  "--device=all",
  "--filesystem=xdg-music",
  "--filesystem=xdg-pictures",
  "--filesystem=~/.var/app/com.valvesoftware.Steam",
  "--filesystem=~/.local/share/Steam",
  "--filesystem=xdg-download",
  "--filesystem=~/snap/steam",
  "--filesystem=xdg-documents",
  "--filesystem=~/.snap/data/steam",
  "--filesystem=xdg-desktop",
  "--filesystem=xdg-videos",
  "--filesystem=~/.steam",
  "--allow=bluetooth",
  "--allow=devel",
  "--allow=multiarch",
  "--allow=per-app-dev-shm",
  "--system-talk-name=org.freedesktop.NetworkManager",
  "--system-talk-name=org.freedesktop.UDisks2",
  "--unset-env=STEAM_RUNTIME_PREFER_HOST_LIBRARIES",
  "--unset-env=ALSA_CONFIG_PATH",
  "--unset-env=STEAM_RUNTIME",
  "--unset-env=MESA_GLSL_CACHE_DIR"
 ],
 "module_count": 17,
 "fetched_at": "2026-09-20T06:31:41.909889+00:00",
 "manifest": {
  "id": "com.github.Matoking.protontricks",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "x-gl-version": "1.4",
  "x-gl-versions": "25.08;25.08-extra;1.4",
  "sdk": "org.freedesktop.Sdk",
  "separate-locales": false,
  "command": "protontricks",
  "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": {
   "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",
    "version": "25.08",
    "no-autodownload": true
   },
   "org.freedesktop.Platform.GL32": {
    "directory": "lib/i386-linux-gnu/GL",
    "version": "1.4",
    "versions": "25.08;25.08-extra;1.4",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": false,
    "add-ld-path": "lib",
    "merge-dirs": "vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d;vulkan/implicit_layer.d",
    "download-if": "active-gl-driver",
    "enable-if": "active-gl-driver",
    "autoprune-unless": "active-gl-driver"
   },
   "com.valvesoftware.Steam.CompatibilityTool": {
    "subdirectories": true,
    "directory": "share/steam/compatibilitytools.d",
    "version": "stable",
    "versions": "stable;beta;test",
    "no-autodownload": true,
    "autodelete": true
   }
  },
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/lib/pkgconfig",
   "/share/aclocal",
   "/share/man"
  ],
  "modules": [
   "python3-Pillow.json",
   "python3-setuptools-scm.json",
   "vdf.json",
   {
    "name": "protontricks",
    "buildsystem": "simple",
    "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"
    ],
    "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"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Matoking/protontricks.git",
      "tag": "1.14.1",
      "commit": "bb0f16380888dd172a4eec8138fe02379bfe035b"
     },
     {
      "type": "patch",
      "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": "file",
      "path": "icon_scalable.svg"
     }
    ],
    "modules": [
     {
      "name": "yad",
      "config-opts": [
       "--enable-standalone"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/v1cont/yad/releases/download/v15.0/yad-15.0.tar.xz",
        "sha256": "7cf4dc136a643bf484ceab27d9b28a513624dffe38a08731132c0e4e24073772",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 5280,
         "url-template": "https://github.com/v1cont/yad/releases/download/v$version/yad-$version.tar.xz"
        }
       }
      ],
      "modules": [
       {
        "name": "intltool",
        "cleanup": [
         "*"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz",
          "sha256": "67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd"
         }
        ]
       }
      ]
     },
     {
      "name": "winetricks",
      "no-autogen": true,
      "make-install-args": [
       "PREFIX=$(FLATPAK_DEST)"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/Matoking/winetricks.git",
        "commit": "7614f8356d7c00f544c67bc71f1146c35a170b43"
       }
      ],
      "modules": [
       {
        "name": "xterm",
        "sources": [
         {
          "type": "git",
          "url": "https://github.com/ThomasDickey/xterm-snapshots.git",
          "tag": "xterm-411",
          "commit": "9489b2056ee51fa9dd6a7087483b9b8f85d6a0c4",
          "x-checker-data": {
           "type": "anitya",
           "project-id": 5272,
           "tag-template": "xterm-$version",
           "is-main-source": true
          }
         }
        ],
        "modules": [
         {
          "name": "libXaw",
          "sources": [
           {
            "type": "archive",
            "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"
            }
           }
          ],
          "modules": [
           {
            "name": "xmu",
            "sources": [
             {
              "type": "archive",
              "url": "https://www.x.org/archive/individual/lib/libXmu-1.3.1.tar.xz",
              "sha256": "81a99e94c4501e81c427cbaa4a11748b584933e94b7a156830c3621256857bc4",
              "x-checker-data": {
               "type": "anitya",
               "project-id": 1785,
               "url-template": "https://www.x.org/archive/individual/lib/libXmu-$version.tar.xz"
              }
             }
            ]
           }
          ]
         },
         {
          "name": "ncurses",
          "config-opts": [
           "--with-shared",
           "--without-manpageus",
           "--with-abi-version=5"
          ],
          "cleanup": [
           "/bin",
           "/include",
           "/share",
           "*.a"
          ],
          "sources": [
           {
            "type": "archive",
            "url": "https://invisible-mirror.net/archives/ncurses/current/ncurses-6.6-20260912.tgz",
            "sha256": "bc14b72df2511e92ad544e971cd383729220787ebd4985d1c81268d6b7b2cc54",
            "x-checker-data": {
             "type": "anitya",
             "project-id": 2057,
             "url-template": "https://invisible-mirror.net/archives/ncurses/current/ncurses-$version.tgz",
             "versions": {
              ">=": "6.5"
             }
            }
           }
          ]
         }
        ]
       },
       {
        "name": "7zip",
        "buildsystem": "simple",
        "subdir": "CPP/7zip/Bundles/Alone2",
        "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"
        ],
        "sources": [
         {
          "type": "git",
          "url": "https://github.com/ip7z/7zip.git",
          "tag": "26.03",
          "commit": "0766b733fe3e06dd2a7f9a3cfbf2108ac73abd17",
          "x-checker-data": {
           "type": "git",
           "tag-pattern": "^([\\d.]+)$"
          }
         }
        ]
       },
       {
        "name": "cabextract",
        "build-options": {
         "strip": true
        },
        "sources": [
         {
          "type": "archive",
          "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"
          }
         }
        ]
       },
       {
        "name": "unrar-free",
        "post-install": [
         "ln -s /app/bin/unrar-free /app/bin/unrar"
        ],
        "sources": [
         {
          "type": "archive",
          "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": "script",
          "dest-filename": "autogen.sh",
          "commands": [
           "autoreconf -vfi"
          ]
         }
        ]
       },
       {
        "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": [
         {
          "type": "archive",
          "sha256": "60a420ad7085eb616cb6e2bdf0a7206d68ff3d37fb5a956dc44242eb2f79b66b",
          "url": "https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.xz",
          "x-checker-data": {
           "type": "anitya",
           "project-id": 109,
           "url-template": "https://github.com/aria2/aria2/releases/download/release-$version/aria2-$version.tar.xz"
          }
         }
        ]
       }
      ]
     }
    ]
   },
   {
    "name": "bundle-setup",
    "buildsystem": "simple",
    "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"
    ],
    "sources": [
     {
      "type": "file",
      "path": "ld.so.conf"
     }
    ]
   }
  ]
 }
}