{
 "app_id": "io.sourceforge.pysolfc.PySolFC",
 "source_url": "https://raw.githubusercontent.com/flathub/io.sourceforge.pysolfc.PySolFC/master/io.sourceforge.pysolfc.PySolFC.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri"
 ],
 "module_count": 7,
 "fetched_at": "2026-09-17T16:12:56.385734+00:00",
 "manifest": {
  "app-id": "io.sourceforge.pysolfc.PySolFC",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "pysol",
  "cleanup": [
   "/bin/sqlite3_analyzer",
   "/bin/tclsh8.6",
   "/bin/wish8.6",
   "/include",
   "*.a",
   "*.la",
   "/lib/*Config.sh",
   "/lib/cmake",
   "/lib/perl5",
   "/lib/pkgconfig",
   "/lib64/pkgconfig",
   "/man",
   "/share/aclocal",
   "/share/info",
   "/share/man"
  ],
  "rename-icon": "pysol",
  "rename-desktop-file": "pysol.desktop",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--device=dri",
   "--persist=.PySolFC"
  ],
  "build-options": {
   "env": {
    "PORTMIDI_INC_PORTTIME": "1"
   }
  },
  "modules": [
   "tkinter.json",
   "pygame2_extra_deps.json",
   "python3-modules.json",
   {
    "name": "PySolFC-Cardsets",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/share/PySolFC/cardsets/",
     "cp -r * /app/share/PySolFC/cardsets/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/shlomif/PySolFC-Cardsets",
      "commit": "6d382152d4c49169022785fcc629ff98b13e04b7",
      "tag": "3.1",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "PySol-Music",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 data/music/* -t /app/share/PySolFC/music/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/shlomif/pysol-music",
      "commit": "108d6dcbb931f2b709f5a1590ea7ea6190f98d9e",
      "tag": "4.50",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     }
    ]
   },
   "solvers.json",
   {
    "name": "PySolFC",
    "buildsystem": "simple",
    "build-commands": [
     "desktop-file-edit --set-key=Exec --set-value=pysol data/pysol.desktop",
     "make rules",
     "make mo",
     "ln -s data/images images",
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} . --no-build-isolation",
     "install -Dm755 pysol -t /app/bin/",
     "install -Dm644 io.sourceforge.pysolfc.PySolFC.appdata.xml -t /app/share/metainfo/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/shlomif/PySolFC",
      "commit": "327ad87736c0376b2b451bf341e97a98f93d4d41",
      "tag": "pysolfc-3.6.1",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^pysolfc-([\\d.]+)$",
       "is-main-source": true
      }
     },
     {
      "type": "file",
      "path": "io.sourceforge.pysolfc.PySolFC.appdata.xml"
     },
     {
      "type": "script",
      "commands": [
       "# Workaround for 'flatpak run' not setting LD_LIBRARY_PATH=/app/lib",
       "# and SDL_mixer needing that to find /app/lib/libmodplug.so*",
       "",
       "export LD_LIBRARY_PATH='/app/lib:$LD_LIBRARY_PATH'",
       "pysol.py \"$@\""
      ],
      "dest-filename": "pysol"
     }
    ]
   }
  ]
 }
}