{
 "app_id": "ua.org.brezblock.q4wine",
 "source_url": "https://raw.githubusercontent.com/flathub/ua.org.brezblock.q4wine/master/ua.org.brezblock.q4wine.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.1",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--device=all",
  "--filesystem=xdg-documents",
  "--filesystem=xdg-desktop",
  "--filesystem=xdg-music",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=xdg-pictures",
  "--filesystem=xdg-videos",
  "--filesystem=xdg-download",
  "--allow=devel",
  "--allow=multiarch",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.freedesktop.Notifications",
  "--system-talk-name=org.freedesktop.NetworkManager",
  "--system-talk-name=org.freedesktop.UDisks2"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-20T12:32:05.954523+00:00",
 "manifest": {
  "id": "ua.org.brezblock.q4wine",
  "runtime": "org.kde.Platform",
  "sdk": "org.kde.Sdk",
  "runtime-version": 6.1,
  "base": "org.winehq.Wine",
  "base-version": "stable-25.08",
  "command": "q4wine",
  "rename-icon": "q4wine",
  "rename-desktop-file": "q4wine.desktop",
  "finish-args": [
   "--allow=devel",
   "--allow=multiarch",
   "--device=all",
   "--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",
   "--env=WINEPREFIX=/var/data/wine",
   "--filesystem=xdg-desktop",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-download",
   "--filesystem=xdg-music",
   "--filesystem=xdg-pictures",
   "--filesystem=xdg-videos",
   "--persist=.wine",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--socket=wayland",
   "--socket=x11",
   "--system-talk-name=org.freedesktop.NetworkManager",
   "--system-talk-name=org.freedesktop.UDisks2",
   "--talk-name=org.freedesktop.Notifications"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/lib32/cmake",
   "/lib32/pkgconfig",
   "/share/doc",
   "/share/man"
  ],
  "inherit-extensions": [
   "org.freedesktop.Platform.Compat.i386",
   "org.freedesktop.Platform.Compat.i386.Debug",
   "org.freedesktop.Platform.GL32",
   "org.freedesktop.Platform.GL32.Debug",
   "org.freedesktop.Platform.VAAPI.Intel.i386",
   "org.freedesktop.Platform.VAAPI.nvidia.i386",
   "org.freedesktop.Platform.codecs_extra.i386",
   "org.winehq.Wine.gecko",
   "org.winehq.Wine.mono"
  ],
  "add-extensions": {
   "com.valvesoftware.Steam.Utility": {
    "subdirectories": true,
    "directory": "utils",
    "versions": "stable;beta;test;master",
    "add-ld-path": "lib",
    "merge-dirs": "share/vulkan/explicit_layer.d;share/vulkan/implicit_layer.d;",
    "no-autodownload": true,
    "autodelete": false
   }
  },
  "modules": [
   {
    "name": "q4wine",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DLIBS_ENTRY_PATH=/app/lib",
     "-DWITH_DBUS=ON"
    ],
    "post-install": [
     "install -Dm644 -t /app/share/appdata/ ${FLATPAK_ID}.appdata.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/brezerk/q4wine.git",
      "tag": "v1.4.2",
      "commit": "f506d89976c427d4878ac968db448bf7dd8cdbe2"
     },
     {
      "type": "file",
      "path": "ua.org.brezblock.q4wine.appdata.xml",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/brezerk/q4wine/releases/latest",
       "tag-query": ".tag_name",
       "timestamp-query": ".published_at"
      }
     }
    ],
    "modules": [
     {
      "name": "fuseiso",
      "sources": [
       {
        "type": "archive",
        "url": "https://downloads.sourceforge.net/fuseiso/fuseiso-20070708.tar.bz2",
        "sha256": "8b242e077d66cd20900c59c905ff90b4c934b0613dd5a20facb0b1260ac5fd88"
       }
      ],
      "modules": [
       {
        "name": "libfuse",
        "config-opts": [
         "--enable-lib"
        ],
        "build-options": {
         "env": {
          "MOUNT_FUSE_PATH": "/app/bin",
          "INIT_D_PATH": "/app/etc/init.d",
          "UDEV_RULES_PATH": "/app/etc/udev/rules.d",
          "ACLOCAL_PATH": "/usr/share/gettext/m4/"
         }
        },
        "sources": [
         {
          "type": "archive",
          "url": "https://github.com/libfuse/libfuse/archive/fuse-2.9.9.tar.gz",
          "sha256": "e57a24721177c3b3dd71cb9239ca46b4dee283db9388d48f7ccd256184982194"
         },
         {
          "type": "shell",
          "commands": [
           "./makeconf.sh"
          ]
         },
         {
          "type": "patch",
          "paths": [
           "fuse-closefrom.patch"
          ]
         }
        ],
        "cleanup": [
         "/etc",
         "/include",
         "/lib/pkgconfig"
        ]
       }
      ]
     },
     {
      "name": "icoutils",
      "sources": [
       {
        "type": "archive",
        "url": "http://savannah.nongnu.org/download/icoutils/icoutils-0.32.3.tar.bz2",
        "sha256": "17abe02d043a253b68b47e3af69c9fc755b895db68fdc8811786125df564c6e0"
       },
       {
        "type": "patch",
        "paths": [
         "icoutils-gcc15.patch"
        ]
       }
      ]
     }
    ]
   },
   {
    "name": "konsole",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/KDE/konsole/archive/refs/tags/v25.04.0.tar.gz",
      "sha256": "8112dddd00576d5ec2d2eb9eee8dad3f2ab59a6b168f3beb4abb17c6d8c2daf3"
     }
    ],
    "cleanup": [
     "/share/applications",
     "/share/khotkeys",
     "/share/knotifications6",
     "/share/kservices6",
     "/share/kservicetypes6",
     "/share/metainfo"
    ]
   },
   {
    "name": "q4wine-app-environment",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/utils /app/share/vulkan",
     "ln -srv /app/{utils/,}share/vulkan/explicit_layer.d",
     "ln -srv /app/{utils/,}share/vulkan/implicit_layer.d",
     "install -Dm755 pkexec.sh /app/bin/pkexec",
     "install -Dm755 sudo.sh /app/bin/sudo",
     "ln -s /usr/bin/false /app/bin/mount",
     "ln -s /usr/bin/false /app/bin/umount"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "pkexec.sh",
      "commands": [
       "zenity --error --no-wrap \\\n       --title=\"Command unavailable\" \\\n       --text=\"Running $0 is not possible in flatpak sandbox; command was: $*\"\nexit 1\n"
      ]
     },
     {
      "type": "script",
      "dest-filename": "sudo.sh",
      "commands": [
       "echo \"Running sudo is not possible in flatpak sandbox; command was: $*\" > /dev/stderr\nexit 1\n"
      ]
     }
    ]
   }
  ]
 }
}