{
 "app_id": "org.artsoft.rocksndiamonds",
 "source_url": "https://raw.githubusercontent.com/flathub/org.artsoft.rocksndiamonds/master/org.artsoft.rocksndiamonds.yaml",
 "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": 4,
 "fetched_at": "2026-09-17T16:14:11.961986+00:00",
 "manifest": {
  "app-id": "org.artsoft.rocksndiamonds",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "rocksndiamonds",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--socket=pulseaudio"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "*.la"
  ],
  "modules": [
   "shared-modules/SDL2/SDL2_image.json",
   "shared-modules/SDL2/SDL2_mixer.json",
   {
    "name": "SDL2_net",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.4.0.tar.gz",
      "sha256": "9cbca2527feb3f1a622d48ba65cc7dee9b1e3f2c55ceafb7d7720bb058aafb30"
     }
    ]
   },
   {
    "name": "rocksndiamonds",
    "buildsystem": "simple",
    "build-commands": [
     "make BASE_PATH=${FLATPAK_DEST}/share/rocksndiamonds"
    ],
    "post-install": [
     "install -Dm 755 rocksndiamonds ${FLATPAK_DEST}/bin/rocksndiamonds",
     "mkdir -p ${FLATPAK_DEST}/share/rocksndiamonds",
     "cp -a graphics levels music sounds ${FLATPAK_DEST}/share/rocksndiamonds",
     "install -Dm 644 rocksndiamonds.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png",
     "install -Dm 644 rocksndiamonds.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm 644 rocksndiamonds.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.artsoft.org/RELEASES/linux/rocksndiamonds/rocksndiamonds-4.4.1.3-linux.tar.gz",
      "sha256": "11bc23846bbd6db3172e4f08e92880a758ca63f082a33553ad8c38f4eb2f9077"
     },
     {
      "type": "patch",
      "path": "fix-build-error.patch"
     },
     {
      "type": "shell",
      "commands": [
       "rm rocksndiamonds",
       "rm -rf lib"
      ]
     },
     {
      "type": "file",
      "path": "rocksndiamonds.desktop"
     },
     {
      "type": "file",
      "path": "rocksndiamonds.metainfo.xml"
     },
     {
      "type": "file",
      "path": "rocksndiamonds.png"
     }
    ]
   }
  ]
 }
}