{
 "app_id": "fr.free.hxc2001.HxCFloppyEmulator",
 "source_url": "https://raw.githubusercontent.com/flathub/fr.free.hxc2001.HxCFloppyEmulator/master/fr.free.hxc2001.HxCFloppyEmulator.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-documents"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:09:59.859654+00:00",
 "manifest": {
  "app-id": "fr.free.hxc2001.HxCFloppyEmulator",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "hxcfloppyemulator",
  "add-extensions": {
   "fr.free.hxc2001.HxCFloppyEmulator.Extension": {
    "versions": "1-25.08",
    "directory": "extensions",
    "add-ld-path": "extra/lib",
    "subdirectories": true,
    "autodelete": true,
    "no-autodownload": true
   }
  },
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--filesystem=xdg-documents",
   "--device=dri",
   "--persist=.fltk"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   {
    "name": "fltk",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DOPTION_BUILD_SHARED_LIBS=ON",
     "-DFLTK_LIBDIR:PATH=lib",
     "-DOpenGL_GL_PREFERENCE=GLVND"
    ],
    "build-options": {
     "cflags": "-fPIC",
     "cxxflags": "-fPIC"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/fltk/fltk/releases/download/release-1.4.5/fltk-1.4.5-source.tar.gz",
      "sha256": "eede1fb2b8e9c2e581e77082e15252145855c79aad30070ee3b24aabe2f926f1",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 823,
       "url-template": "https://github.com/fltk/fltk/releases/download/release-$version/fltk-$version-source.tar.gz"
      }
     }
    ]
   },
   {
    "name": "hxcfloppyemulator",
    "buildsystem": "simple",
    "build-commands": [
     "sed -i /^FLTKLIB/d ../HxCFloppyEmulator_software/build/Makefile",
     "sed -i '/$(MAKE) $(FLTKLIB)/d' ../HxCFloppyEmulator_software/build/Makefile",
     "sed -i 's@-I $(BASEDIR)/thirdpartylibs/fltk/fltk-1.x.x/@$(shell fltk-config --cxxflags)@g' ../HxCFloppyEmulator_software/build/Makefile",
     "sed -i 's@LDFLAGS += $(shell $(BASEDIR)/thirdpartylibs/fltk/fltk-1.x.x/fltk-config --ldflags)@LDFLAGS += $(shell fltk-config --ldflags)@g' ../HxCFloppyEmulator_software/build/Makefile",
     "make",
     "mkdir -p /app/lib /app/bin",
     "install -Dm755 -t /app/bin hxcfe",
     "install -Dm755 -t /app/bin hxcfloppyemulator",
     "install -Dm644 -t /app/lib libhxcfe.so",
     "install -Dm644 -t /app/lib libusbhxcfe.so",
     "install -Dm644 -t \"${FLATPAK_DEST}/share/appdata/\" ../fr.free.hxc2001.HxCFloppyEmulator.appdata.xml",
     "install -Dm644 -t \"${FLATPAK_DEST}/share/applications/\" ../fr.free.hxc2001.HxCFloppyEmulator.desktop",
     "install -Dm644 ../HxCFloppyEmulator_software/sources/mac/icons/hxcfloppyemulator.iconset/icon_512x512.png \"${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png\"",
     "install -Dm644 ../HxCFloppyEmulator_software/sources/mac/icons/hxcfloppyemulator.iconset/icon_256x256.png \"${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png\"",
     "install -Dm644 ../HxCFloppyEmulator_software/sources/mac/icons/hxcfloppyemulator.iconset/icon_128x128.png \"${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png\"",
     "install -Dm644 ../HxCFloppyEmulator_software/sources/mac/icons/hxcfloppyemulator.iconset/icon_32x32.png \"${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/${FLATPAK_ID}.png\"",
     "install -Dm644 ../HxCFloppyEmulator_software/sources/mac/icons/hxcfloppyemulator.iconset/icon_16x16.png \"${FLATPAK_DEST}/share/icons/hicolor/16x16/apps/${FLATPAK_ID}.png\"",
     "install -d \"${FLATPAK_DEST}/extensions\""
    ],
    "subdir": "build",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/jfdelnero/HxCFloppyEmulator.git",
      "commit": "d072d598290985edc610f867c8e6e2fa3131d4c5"
     },
     {
      "type": "file",
      "path": "fr.free.hxc2001.HxCFloppyEmulator.appdata.xml"
     },
     {
      "type": "file",
      "path": "fr.free.hxc2001.HxCFloppyEmulator.desktop"
     }
    ]
   }
  ]
 }
}