{
 "app_id": "com.playonlinux.PlayOnLinux4",
 "source_url": "https://raw.githubusercontent.com/flathub/com.playonlinux.PlayOnLinux4/master/com.playonlinux.PlayOnLinux4.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--filesystem=host",
  "--allow=multiarch"
 ],
 "module_count": 14,
 "fetched_at": "2026-09-20T15:18:19.496420+00:00",
 "manifest": {
  "id": "com.playonlinux.PlayOnLinux4",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.winehq.Wine",
  "base-version": "stable-26.08",
  "command": "playonlinux",
  "rename-desktop-file": "PlayOnLinux.desktop",
  "rename-appdata-file": "PlayOnLinux.appdata.xml",
  "x-gl-version": "1.4",
  "x-gl-versions": "26.08;26.08-extra;1.4",
  "x-gl-merge-dirs": "vulkan/icd.d;glvnd/egl_vendor.d;egl/egl_external_platform.d;OpenCL/vendors;lib/dri;lib/d3d;lib/gbm;vulkan/explicit_layer.d;vulkan/implicit_layer.d;vdpau",
  "finish-args": [
   "--socket=x11",
   "--device=all",
   "--socket=pulseaudio",
   "--share=ipc",
   "--share=network",
   "--allow=multiarch",
   "--filesystem=host:rw",
   "--env=__GLX_VENDOR_LIBRARY_NAME=mesa",
   "--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/codecs-extra/lib/gstreamer-1.0:/usr/lib/i386-linux-gnu/codecs-extra/lib/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0:/usr/lib/i386-linux-gnu/gstreamer-1.0"
  ],
  "cleanup": [
   "/share/pkgconfig",
   "/share/pixmaps",
   "/share/man",
   "/include"
  ],
  "inherit-extensions": [
   "org.winehq.Wine.gecko",
   "org.winehq.Wine.mono"
  ],
  "add-extensions": {
   "org.freedesktop.Platform.GL32": {
    "directory": "lib/i386-linux-gnu/GL",
    "version": "1.4",
    "versions": "26.08;26.08-extra;1.4",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": false,
    "add-ld-path": "lib",
    "merge-dirs": "vulkan/icd.d;glvnd/egl_vendor.d;egl/egl_external_platform.d;OpenCL/vendors;lib/dri;lib/d3d;lib/gbm;vulkan/explicit_layer.d;vulkan/implicit_layer.d;vdpau",
    "download-if": "active-gl-driver",
    "enable-if": "active-gl-driver",
    "autoprune-unless": "active-gl-driver"
   },
   "org.freedesktop.Platform.GL32.Debug": {
    "directory": "lib/debug/lib/i386-linux-gnu/GL",
    "version": "1.4",
    "versions": "26.08;26.08-extra;1.4",
    "subdirectories": true,
    "no-autodownload": true,
    "merge-dirs": "vulkan/icd.d;glvnd/egl_vendor.d;egl/egl_external_platform.d;OpenCL/vendors;lib/dri;lib/d3d;lib/gbm;vulkan/explicit_layer.d;vulkan/implicit_layer.d;vdpau",
    "enable-if": "active-gl-driver",
    "autoprune-unless": "active-gl-driver"
   },
   "org.freedesktop.Platform.VAAPI.Intel.i386": {
    "directory": "lib/i386-linux-gnu/dri/intel-vaapi-driver",
    "version": "26.08",
    "versions": "26.08",
    "autodelete": false,
    "no-autodownload": true,
    "add-ld-path": "lib",
    "download-if": "have-intel-gpu",
    "autoprune-unless": "have-intel-gpu"
   },
   "org.freedesktop.Platform.VAAPI.nvidia.i386": {
    "directory": "i386/nvidia-vaapi-driver",
    "version": "26.08",
    "versions": "26.08",
    "autodelete": false,
    "no-autodownload": true,
    "add-ld-path": "lib",
    "download-if": "have-kernel-module-nvidia",
    "autoprune-unless": "have-kernel-module-nvidia"
   }
  },
  "modules": [
   {
    "name": "i386-setup",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 ld.so.conf -t $FLATPAK_DEST/etc",
     "mkdir -p ${FLATPAK_DEST}/lib/i386-linux-gnu",
     "mkdir -p ${FLATPAK_DEST}/lib/debug/lib/i386-linux-gnu",
     "mkdir -p ${FLATPAK_DEST}/lib/i386-linux-gnu/GL",
     "mkdir -p ${FLATPAK_DEST}/lib/debug/lib/i386-linux-gnu/GL",
     "mkdir -p ${FLATPAK_DEST}/lib/i386-linux-gnu/dri/intel-vaapi-driver",
     "mkdir -p ${FLATPAK_DEST}/i386/nvidia-vaapi-driver"
    ],
    "sources": [
     {
      "type": "inline",
      "dest-filename": "ld.so.conf",
      "contents": "/app/lib32\n/app/lib/i386-linux-gnu\n"
     }
    ]
   },
   {
    "name": "open-bias",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "archive-type": "tar-gzip",
      "url": "https://api.github.com/repos/OpenMathLib/OpenBLAS/tarball/v0.3.34",
      "sha256": "f07f9ea0e9e1bf70b8b04a2274c6fa5c30164672514046d2b3fd9c506a16cd3d",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/OpenMathLib/OpenBLAS/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".tarball_url"
      }
     }
    ]
   },
   "requests.yaml",
   "python3-modules.yaml",
   {
    "name": "netcat",
    "buildsystem": "autotools",
    "post-install": [
     "rm -rf $FLATPAK_DEST/share/locale/it",
     "rm -rf $FLATPAK_DEST/share/locale/sk"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://sourceforge.net/projects/netcat/files/netcat/0.7.1/netcat-0.7.1.tar.gz",
      "sha256": "30719c9a4ffbcf15676b8f528233ccc54ee6cba96cb4590975f5fd60c68a066f",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 21535,
       "url-template": "http://sourceforge.net/projects/netcat/files/netcat/$version/netcat-$version.tar.gz"
      }
     }
    ],
    "cleanup": [
     "/man",
     "/info"
    ]
   },
   {
    "name": "ImageMagick",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ImageMagick/ImageMagick/releases/download/7.1.2-31/ImageMagick-7.1.2-31.7z",
      "sha256": "a050a1f6b632cf3a5b326fe6fb863790ce4d52d55fba9c6a7645b42599660e18",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1372,
       "url-template": "https://github.com/ImageMagick/ImageMagick/releases/download/$version/ImageMagick-$version.7z"
      }
     }
    ]
   },
   {
    "name": "icoutils",
    "buildsystem": "autotools",
    "build-options": {
     "cflags": "-std=gnu17"
    },
    "sources": [
     {
      "type": "archive",
      "url": "http://download.savannah.gnu.org/releases/icoutils/icoutils-0.32.3.tar.bz2",
      "sha256": "17abe02d043a253b68b47e3af69c9fc755b895db68fdc8811786125df564c6e0",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1360,
       "url-template": "http://download.savannah.gnu.org/releases/icoutils/icoutils-$version.tar.bz2"
      }
     }
    ]
   },
   {
    "name": "oniguruma",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "archive-type": "tar-gzip",
      "url": "https://api.github.com/repos/kkos/oniguruma/tarball/v6.9.10",
      "sha256": "dd1131ff9a06ccc00b5833858069f390f6d8239489a4bdb518885ac10c68334b",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/kkos/oniguruma/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".tarball_url"
      }
     }
    ]
   },
   "xterm.yaml",
   {
    "name": "xrdb",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "https://xorg.freedesktop.org/releases/individual/app/xrdb-1.2.3.tar.gz",
      "sha256": "89c3d0a5ee77e3f1b25a3a63cce2a322fe899acb061ed8e0bab6920189b61edd",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 14956,
       "url-template": "https://xorg.freedesktop.org/releases/individual/app/xrdb-$version.tar.gz"
      }
     }
    ]
   },
   "mesa-demos.yaml",
   "scrot.yaml",
   {
    "name": "fake-sudo",
    "buildsystem": "simple",
    "build-commands": [
     "echo '#!/bin/sh' > $FLATPAK_DEST/bin/sudo",
     "chmod +x $FLATPAK_DEST/bin/sudo"
    ]
   },
   {
    "name": "PlayOnLinux",
    "buildsystem": "simple",
    "build-commands": [
     "rm -rf $FLATPAK_DEST/share/locale",
     "ln -s /usr/bin/python $FLATPAK_DEST/bin/python2",
     "PREFIX=$FLATPAK_DEST make build",
     "PREFIX=$FLATPAK_DEST make install",
     "install -Dm644 $FLATPAK_DEST/share/pixmaps/playonlinux.png $FLATPAK_DEST/share/icons/hicolor/128x128/apps/$FLATPAK_ID.png",
     "install -Dm644 $FLATPAK_DEST/share/pixmaps/playonlinux32.png $FLATPAK_DEST/share/icons/hicolor/32x32/apps/$FLATPAK_ID.png",
     "install -Dm644 $FLATPAK_DEST/share/pixmaps/playonlinux16.png $FLATPAK_DEST/share/icons/hicolor/16x16/apps/$FLATPAK_ID.png",
     "desktop-file-edit --set-name \"PlayOnLinux 4\" --set-icon $FLATPAK_ID $FLATPAK_DEST/share/applications/PlayOnLinux.desktop"
    ],
    "sources": [
     {
      "type": "archive",
      "archive-type": "tar-gzip",
      "url": "https://api.github.com/repos/PlayOnLinux/POL-POM-4/tarball/4.4",
      "sha256": "dd76c9cf6b548edbaf311996b588bd4c9eec256308f66486dbec59303ef9d0ed",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/PlayOnLinux/POL-POM-4/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".tarball_url"
      }
     },
     {
      "type": "patch",
      "path": "patches/xdg-dir.patch"
     },
     {
      "type": "patch",
      "path": "patches/desktop-shortcut.patch"
     },
     {
      "type": "patch",
      "path": "patches/working-locales.patch"
     },
     {
      "type": "patch",
      "path": "patches/no-vdrive-link.patch"
     },
     {
      "type": "patch",
      "path": "patches/debian-package.patch"
     },
     {
      "type": "patch",
      "path": "patches/appdata.patch"
     },
     {
      "type": "patch",
      "path": "patches/remove-asyncore-import.patch"
     },
     {
      "type": "patch",
      "path": "patches/pipes-replace.patch"
     },
     {
      "type": "patch",
      "path": "patches/fix-escape-sequence.patch"
     },
     {
      "type": "patch",
      "path": "patches/remove-urlopener.patch"
     }
    ]
   }
  ]
 }
}