{
 "app_id": "org.luanti.luanti",
 "source_url": "https://raw.githubusercontent.com/flathub/org.luanti.luanti/master/org.luanti.luanti.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=all"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:15:59.436498+00:00",
 "manifest": {
  "app-id": "org.luanti.luanti",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "luanti",
  "rename-icon": "luanti",
  "copy-icon": true,
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--device=all",
   "--share=ipc",
   "--share=network"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/aclocal",
   "/share/gtk-doc",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/luajit/luajit.json",
   {
    "name": "luanti",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DENABLE_CURSES=0",
     "-DENABLE_GETTEXT=1"
    ],
    "cleanup": [
     "/share/minetest/games/devtest"
    ],
    "post-install": [
     "mv $FLATPAK_DEST/bin/luanti $FLATPAK_DEST/bin/luanti.bin",
     "install -Dm755 luanti.sh $FLATPAK_DEST/bin/luanti"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/luanti-org/luanti.git",
      "tag": "5.17.0",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "([\\d.]+)$",
       "is-important": true
      },
      "commit": "c0e6812b1a4260bb25a1f606f70f55f4962bb97d"
     },
     {
      "type": "script",
      "dest-filename": "luanti.sh",
      "commands": [
       "MINETEST_USER_PATH=$HOME/.var/app/org.luanti.luanti/.minetest exec luanti.bin \"$@\""
      ]
     }
    ]
   }
  ]
 }
}