{
 "app_id": "com.voxdsp.PacGal",
 "source_url": "https://raw.githubusercontent.com/flathub/com.voxdsp.PacGal/master/com.voxdsp.PacGal.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:09:06.128513+00:00",
 "manifest": {
  "app-id": "com.voxdsp.PacGal",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "pacgal",
  "rename-icon": "pacgal",
  "rename-desktop-file": "pacgal.desktop",
  "rename-appdata-file": "pacgal.appdata.xml",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig"
  ],
  "modules": [
   {
    "name": "glfw",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_SHARED_LIBS=ON",
     "-DGLFW_BUILD_EXAMPLES=OFF",
     "-DGLFW_BUILD_TESTS=OFF",
     "-DGLFW_BUILD_DOCS=OFF",
     "-DGLFW_USE_WAYLAND=1"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/glfw/glfw.git",
      "commit": "3eaf1255b29fdf5c2895856c7be7d7185ef2b241"
     }
    ]
   },
   {
    "name": "pacgal",
    "buildsystem": "simple",
    "build-commands": [
     "cc main.c -I inc -Ofast -L/app/lib -lglfw -lm -o pacgal",
     "install -Dm 0755 pacgal -t ${FLATPAK_DEST}/bin",
     "install -Dm 0644 flat/pacgal.desktop -t ${FLATPAK_DEST}/share/applications/",
     "install -Dm 0644 flat/pacgal.appdata.xml -t ${FLATPAK_DEST}/share/metainfo/",
     "install -Dm 0644 flat/pacgal.png -t ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/mrbid/PAC-GAL.git",
      "commit": "9056f4de244ca7a8dec3e4a95a3a3fd1b72e1cd5"
     }
    ]
   }
  ]
 }
}