{
 "app_id": "club.haroohie.SerialLoops",
 "source_url": "https://raw.githubusercontent.com/flathub/club.haroohie.SerialLoops/master/club.haroohie.SerialLoops.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:06:47.361800+00:00",
 "manifest": {
  "id": "club.haroohie.SerialLoops",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "base": "net.kuribo64.melonDS",
  "base-version": "stable",
  "sdk": "org.kde.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet8",
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "build-options": {
   "prepend-path": "/usr/lib/sdk/dotnet8/bin",
   "append-ld-library-path": "/usr/lib/sdk/dotnet8/lib",
   "prepend-pkg-config-path": "/usr/lib/sdk/dotnet8/lib/pkgconfig"
  },
  "command": "SerialLoops",
  "finish-args": [
   "--device=dri",
   "--socket=x11",
   "--share=ipc",
   "--socket=pulseaudio",
   "--persist=SerialLoops",
   "--env=DOTNET_ROOT=/app/lib/dotnet",
   "--env=SL_LLVM_PATH=/app/lib/llvm20",
   "--env=SL_NINJA_PATH=/app/bin/ninja",
   "--env=SL_BUNDLED_EMULATOR=/app/bin/melonDS",
   "--env=SL_STORE_SYS_CONFIG=false",
   "--env=SL_USE_UPDATER=false",
   "--env=SL_FLATPAK=true"
  ],
  "modules": [
   {
    "name": "dotnet",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/dotnet8/bin/install.sh"
    ]
   },
   {
    "name": "llvm",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p ${FLATPAK_DEST}/lib/llvm20/bin/",
     "mkdir -p ${FLATPAK_DEST}/lib/llvm20/lib/",
     "cp /usr/lib/sdk/llvm20/bin/clang ${FLATPAK_DEST}/lib/llvm20/bin",
     "cp /usr/lib/sdk/llvm20/bin/ld.lld ${FLATPAK_DEST}/lib/llvm20/bin",
     "cp /usr/lib/sdk/llvm20/bin/llvm-objcopy ${FLATPAK_DEST}/lib/llvm20/bin",
     "cp /usr/lib/sdk/llvm20/bin/llvm-objdump ${FLATPAK_DEST}/lib/llvm20/bin",
     "cp -ra /usr/lib/sdk/llvm20/lib/* ${FLATPAK_DEST}/lib/llvm20/lib/"
    ]
   },
   {
    "name": "Ninja",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ninja-build/ninja.git",
      "tag": "v1.13.1"
     }
    ],
    "build-commands": [
     "python3 ./configure.py --bootstrap",
     "mv ninja ${FLATPAK_DEST}/bin/ninja"
    ]
   },
   {
    "name": "SerialLoops",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/haroohie-club/SerialLoops.git",
      "tag": "0.3.3.1"
     },
     "./nuget-sources.json"
    ],
    "build-commands": [
     "SLVersion=0.3.3 SLAssemblyVersion=0.3.3 dotnet publish src/SerialLoops/SerialLoops.csproj -c Release -f net8.0 --no-self-contained --source ./nuget-sources /p:PublishSingleFile=false /p:PublishTrimmed=false",
     "mkdir -p ${FLATPAK_DEST}/bin",
     "cp -r src/SerialLoops/bin/Release/net8.0/publish/* ${FLATPAK_DEST}/bin",
     "install -Dm644 src/SerialLoops/Assets/Icons/AppIcon.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -Dm644 install/linux/flatpak/${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/",
     "install -Dm644 install/linux/flatpak/${FLATPAK_ID}.desktop -t ${FLATPAK_DEST}/share/applications/"
    ]
   }
  ]
 }
}