{
 "app_id": "org.virtualxt.VirtualXT",
 "source_url": "https://raw.githubusercontent.com/flathub/org.virtualxt.VirtualXT/master/org.virtualxt.VirtualXT.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=all",
  "--filesystem=home",
  "--filesystem=/media",
  "--filesystem=/run/media"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:16:57.237295+00:00",
 "manifest": {
  "app-id": "org.virtualxt.VirtualXT",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "virtualxt.freedos",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--filesystem=home",
   "--filesystem=/media",
   "--filesystem=/run/media",
   "--device=all"
  ],
  "modules": [
   {
    "name": "premake5",
    "buildsystem": "simple",
    "build-commands": [
     "make -C build/gmake2.unix config=release",
     "install -Dm755 -t \"${FLATPAK_DEST}/bin\" bin/release/premake5"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/premake/premake-core/releases/download/v5.0.0-beta3/premake-5.0.0-beta3-src.zip",
      "sha256": "4b2b1fe9772ca1caf689c07e8c32f108b8393922956f602ddaf404f73467bd83"
     }
    ]
   },
   {
    "name": "virtualxt",
    "buildsystem": "simple",
    "build-commands": [
     "premake5 gmake2",
     "CFLAGS=-DVXT_VERSION_RELEASE make sdl2-frontend",
     "install -Dm00755 build/sdl2/virtualxt $FLATPAK_DEST/bin/virtualxt",
     "install -Dm00644 bios/pcxtbios.bin $FLATPAK_DEST/share/virtualxt/pcxtbios.bin",
     "install -Dm00644 bios/GLABIOS.ROM $FLATPAK_DEST/share/virtualxt/GLABIOS.ROM",
     "install -Dm00644 bios/GLaTICK_0.8.4_AT.ROM $FLATPAK_DEST/share/virtualxt/GLaTICK_0.8.4_AT.ROM",
     "install -Dm00644 bios/vxtx.bin $FLATPAK_DEST/share/virtualxt/vxtx.bin",
     "install -Dm00644 bios/vgabios.bin $FLATPAK_DEST/share/virtualxt/vgabios.bin",
     "install -Dm00644 boot/freedos.img $FLATPAK_DEST/share/virtualxt/freedos.img",
     "install -Dm00644 boot/freedos_hd.img $FLATPAK_DEST/share/virtualxt/freedos_hd.img",
     "install -Dm00644 boot/elks_hd.img $FLATPAK_DEST/share/virtualxt/elks_hd.img",
     "install -Dm00644 tools/icon/icon.png $FLATPAK_DEST/share/icons/hicolor/128x128/apps/$FLATPAK_ID.png",
     "install -Dm00755 tools/package/flatpak/virtualxt.freedos $FLATPAK_DEST/bin/virtualxt.freedos",
     "install -Dm00644 tools/package/flatpak/$FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop",
     "install -Dm00644 $FLATPAK_ID.appdata.xml $FLATPAK_DEST/share/appdata/$FLATPAK_ID.appdata.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://codeberg.org/virtualxt/virtualxt",
      "tag": "v1.2"
     },
     {
      "type": "file",
      "path": "org.virtualxt.VirtualXT.appdata.xml"
     }
    ]
   }
  ]
 }
}