{
 "app_id": "net.stabyourself.nottetris2",
 "source_url": "https://raw.githubusercontent.com/flathub/net.stabyourself.nottetris2/master/net.stabyourself.nottetris2.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri"
 ],
 "module_count": 9,
 "fetched_at": "2026-09-17T16:13:57.050721+00:00",
 "manifest": {
  "id": "net.stabyourself.nottetris2",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "nottetris2",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--socket=x11",
   "--device=dri"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   "shared-modules/SDL/SDL-1.2.15.json",
   "shared-modules/lua5.1/lua-5.1.5.json",
   {
    "name": "libmng",
    "sources": [
     {
      "type": "archive",
      "url": "http://downloads.sourceforge.net/sourceforge/libmng/libmng-2.0.3.tar.xz",
      "sha256": "4a462fdd48d4bc82c1d7a21106c8a18b62f8cc0042454323058e6da0dbb57dd3"
     }
    ]
   },
   "shared-modules/physfs/physfs.json",
   {
    "name": "libdevil",
    "config-opts": [
     "--enable-IL=yes",
     "--enable-ILU=yes",
     "--enable-ILUT=yes",
     "--disable-static"
    ],
    "rm-configure": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/LuaDist/libdevil/archive/1.7.8.tar.gz",
      "sha256": "eaa088ea7544343750096fad2bcf8d14b907c6c3fe9714a56e2b54d391a2e25e"
     },
     {
      "type": "patch",
      "paths": [
       "patches/libdevil-include_IL-il.h.patch",
       "patches/libdevil-libpng14.patch"
      ]
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "AUTOMAKE=\"automake --foreign\" autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "libmodplug",
    "sources": [
     {
      "type": "archive",
      "url": "http://downloads.sourceforge.net/modplug-xmms/libmodplug-0.8.9.0.tar.gz",
      "sha256": "457ca5a6c179656d66c01505c0d95fafaead4329b9dbaa0f997d00a3508ad9de"
     }
    ]
   },
   {
    "name": "love",
    "build-options": {
     "cflags": "-Wno-error=implicit-int",
     "cxxflags": "-Wno-error=implicit-int",
     "env": {
      "LIBS": "-ldl"
     }
    },
    "rm-configure": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/love2d/love/releases/download/0.7.2/love-0.7.2-linux-src.tar.gz",
      "sha256": "a57adcb0cbdc390a9bd8e2fe477bc175799b9ffd3486e01f859a36bf27f7f268"
     },
     {
      "type": "patch",
      "path": "patches/love-buildfix.patch"
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "AUTOMAKE=\"automake --foreign\" autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "nottetris2",
    "buildsystem": "simple",
    "build-commands": [
     "mv game /app/lib/nottetris2",
     "install -Dm555 nottetris2.sh /app/bin/nottetris2",
     "install -Dm644 512x512.png /app/share/icons/hicolor/512x512/apps/net.stabyourself.nottetris2.png",
     "install -Dm644 net.stabyourself.nottetris2.desktop -t /app/share/applications/",
     "install -Dm644 net.stabyourself.nottetris2.appdata.xml -t /app/share/metainfo/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Stabyourself/nottetris2/archive/v2.0-1-gd524ea4.zip",
      "sha256": "b2b40b20f13204604d356e60bcf65a270a0dd1513d30acc27856fc78a4320e01",
      "dest": "game"
     },
     {
      "type": "file",
      "path": "nottetris2.sh"
     },
     {
      "type": "file",
      "path": "512x512.png"
     },
     {
      "type": "file",
      "path": "net.stabyourself.nottetris2.desktop"
     },
     {
      "type": "file",
      "path": "net.stabyourself.nottetris2.appdata.xml"
     }
    ]
   }
  ]
 }
}