{
 "app_id": "page.codeberg.JakobDev.CCLite",
 "source_url": "https://raw.githubusercontent.com/flathub/page.codeberg.JakobDev.CCLite/master/page.codeberg.JakobDev.CCLite.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-19T13:14:01.404098+00:00",
 "manifest": {
  "id": "page.codeberg.JakobDev.CCLite",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "cclite",
  "finish-args": [
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio"
  ],
  "cleanup": [
   "/lib/pkgconfig",
   "/share/man",
   "/include",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/luajit/luajit.json",
   {
    "name": "libmodplug",
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/modplug-xmms/libmodplug-0.8.9.0.tar.gz",
      "sha256": "457ca5a6c179656d66c01505c0d95fafaead4329b9dbaa0f997d00a3508ad9de",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5669,
       "url-template": "https://downloads.sourceforge.net/modplug-xmms/libmodplug-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "love2d",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/love2d/love/releases/download/11.5/love-11.5-linux-src.tar.gz",
      "sha256": "066e0843f71aa9fd28b8eaf27d41abb74bfaef7556153ac2e3cf08eafc874c39",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/love2d/love/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name | test (\"^.+linux-src\\\\.tar\\\\.gz$\")) | .browser_download_url"
      }
     }
    ],
    "cleanup": [
     "/share"
    ]
   },
   {
    "name": "luasec",
    "buildsystem": "simple",
    "build-commands": [
     "INC_PATH=-I$FLATPAK_DEST/include/luajit-2.1 make linux",
     "LUAPATH=$FLATPAK_DEST/share/lua/5.1 LUACPATH=$FLATPAK_DEST/lib/lua/5.1 make install"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/brunoos/luasec.git",
      "commit": "4c06287052d68fdbe7429b8f967cdc8ee94aa44a",
      "tag": "v1.3.2",
      "x-checker-data": {
       "type": "git"
      }
     }
    ]
   },
   {
    "name": "CCLite",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p $FLATPAK_DEST/CCLite",
     "cp -r src/* $FLATPAK_DEST/CCLite",
     "install -Dm755 cclite.sh $FLATPAK_DEST/bin/cclite",
     "install -Dm644 data/page.codeberg.JakobDev.CCLite.desktop -t $FLATPAK_DEST/share/applications",
     "install -Dm644 data/page.codeberg.JakobDev.CCLite.metainfo.xml -t $FLATPAK_DEST/share/metainfo",
     "for size in {16x16,32x32,64x64,128x128,256x256,512x512}; do install -Dm644 data/icons/$size.png $FLATPAK_DEST/share/icons/hicolor/$size/apps/$FLATPAK_ID.png; done"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://codeberg.org/JakobDev/CCLite/archive/5.5.tar.gz",
      "sha256": "d7da74ceb8bf7706f30af71941d4b9a99625135671f28f24454b7abb900bb0e3",
      "x-checker-data": {
       "type": "json",
       "url": "https://codeberg.org/api/v1/repos/JakobDev/CCLite/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".tarball_url"
      }
     },
     {
      "type": "script",
      "dest-filename": "cclite.sh",
      "commands": [
       "export LUA_PATH=\"./?.lua;/app/share/luajit-2.1.0-beta3/?.lua;/app/share/lua/5.1/?.lua;/app/share/lua/5.1/?/init.lua\"",
       "export LUA_CPATH=\"./?.so;/app/lib/lua/5.1/?.so;/app/lib/lua/5.1/loadall.so\"",
       "export SDL_APP_ID=page.codeberg.JakobDev.CCLite",
       "exec love /app/CCLite \"$@\""
      ]
     },
     {
      "type": "patch",
      "path": "fix-typo.patch"
     }
    ]
   }
  ]
 }
}