{
 "app_id": "com.github.nihui.waifu2x-ncnn-vulkan",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.nihui.waifu2x-ncnn-vulkan/master/com.github.nihui.waifu2x-ncnn-vulkan.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--device=dri",
  "--filesystem=host"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:07:45.304593+00:00",
 "manifest": {
  "app-id": "com.github.nihui.waifu2x-ncnn-vulkan",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "waifu2x-ncnn-vulkan",
  "finish-args": [
   "--device=dri",
   "--filesystem=host"
  ],
  "cleanup": [
   "*.a",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/lib/*.a",
   "/lib/*.la",
   "/share/WebP"
  ],
  "modules": [
   {
    "name": "protobuf",
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/protocolbuffers/protobuf.git",
      "tag": "v21.12",
      "commit": "f0dc78d7e6e331b8c6bb2d5283e06aa26883ca7c",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "waifu2x-ncnn-vulkan",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "subdir": "src",
    "config-opts": [
     "-DUSE_SYSTEM_WEBP=ON"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/nihui/waifu2x-ncnn-vulkan.git",
      "tag": "20250915",
      "commit": "a86cfb043e6482b5f08778a114df9b5faf6e73b7",
      "x-checker-data": {
       "is-main-source": true,
       "type": "json",
       "url": "https://api.github.com/repos/nihui/waifu2x-ncnn-vulkan/releases/latest",
       "tag-query": ".tag_name",
       "version-query": "$tag",
       "timestamp-query": ".published_at"
      }
     },
     {
      "type": "file",
      "path": "com.github.nihui.waifu2x-ncnn-vulkan.metainfo.xml"
     },
     {
      "type": "shell",
      "commands": [
       "install -Dm644 -t \"${FLATPAK_DEST}/share/metainfo\" com.github.nihui.waifu2x-ncnn-vulkan.metainfo.xml",
       "sed -r -i -e 's#(models-cunet)#/app/share/models/\\1#' -e 's#(models-upconv_7_anime_style_art_rgb)#/app/share/models/\\1#' -e 's#(models-upconv_7_photo)#/app/share/models/\\1#' src/main.cpp\n",
       "echo -e \"\\n install(TARGETS waifu2x-ncnn-vulkan DESTINATION bin)\\n install(DIRECTORY ../models DESTINATION share)\" >> src/CMakeLists.txt\n"
      ]
     }
    ]
   }
  ]
 }
}