{
 "app_id": "io.github.cmus.cmus",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.cmus.cmus/master/io.github.cmus.cmus.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--socket=pulseaudio",
  "--device=all",
  "--filesystem=/media",
  "--filesystem=xdg-music",
  "--filesystem=/run/media",
  "--own-name=org.mpris.MediaPlayer2.cmus"
 ],
 "module_count": 9,
 "fetched_at": "2026-09-17T16:10:45.056546+00:00",
 "manifest": {
  "app-id": "io.github.cmus.cmus",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "cmus",
  "finish-args": [
   "--socket=pulseaudio",
   "--filesystem=xdg-music",
   "--filesystem=/media",
   "--filesystem=/run/media",
   "--own-name=org.mpris.MediaPlayer2.cmus",
   "--device=all"
  ],
  "modules": [
   {
    "name": "faad2",
    "buildsystem": "cmake",
    "cleanup": [
     "/share/man",
     "/include",
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/knik0/faad2/archive/refs/tags/2.11.2.tar.gz",
      "sha512": "fd140c0f4e7946e95a49a8652e26f33b138fc3375da34d5e3a55cdde8a74be429eb6fe0180bd434841022cee3c2ec65fe40dda7440fe0dd2761622174f992490"
     }
    ]
   },
   "shared-modules/libmad/libmad.json",
   {
    "name": "libmp4v2",
    "cleanup": [
     "/share/man",
     "/include",
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/enzo1982/mp4v2/releases/download/v2.1.3/mp4v2-2.1.3.tar.bz2",
      "sha512": "89bca9c76cf468a932a09d66bc5409266acde51184bf1262c5bc9a524ee5c9a3e073fd0d37450580284e12d9d46d1fd5db0c4ce647c365cc5106fb39ee3d59f6"
     }
    ]
   },
   {
    "name": "libmodplug",
    "cleanup": [
     "/include"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.sourceforge.net/project/modplug-xmms/libmodplug/0.8.9.0/libmodplug-0.8.9.0.tar.gz",
      "sha512": "880e10154fd367ee24ace53ca7e32a5c1fee7dfff1f934e6499944c12779427da63e2f55f8d6ce25db0a42a5b4424053bf64305b31dbfc4ef6a8909924d655fd"
     }
    ]
   },
   {
    "name": "musepack",
    "buildsystem": "autotools",
    "cleanup": [
     "/include",
     "/bin"
    ],
    "build-options": {
     "cflags": "-Wno-incompatible-pointer-types"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://files.musepack.net/source/musepack_src_r475.tar.gz",
      "sha256": "a4b1742f997f83e1056142d556a8c20845ba764b70365ff9ccf2e3f81c427b2b"
     },
     {
      "type": "patch",
      "path": "musepack-missing-extern.patch"
     },
     {
      "type": "shell",
      "commands": [
       "touch include/config.h.in",
       "head -n 34 configure.in >> configure.ac",
       "echo \"AM_CONDITIONAL([HAVE_VISIBILITY], [false])\" >> configure.ac",
       "echo \"AC_CHECK_LIB([m],[cos])\" >> configure.ac",
       "tail -n 18 configure.in >> configure.ac",
       "rm configure.in",
       "autoreconf -i"
      ]
     }
    ]
   },
   {
    "name": "libcddb",
    "cleanup": [
     "/include",
     "/bin"
    ],
    "build-options": {
     "cflags": "-Wno-incompatible-pointer-types"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/libcddb/libcddb-1.3.2.tar.bz2",
      "sha512": "0e07e7d37f2013164d75b530a5528f54847271fd20f3b7bedb192a05d1f61dcf006d10dc2927efe155a01eddcc57b940bc31d8ac88d5dfc4f1a09771caa84e0a"
     },
     {
      "type": "shell",
      "commands": [
       "cp -p /usr/share/automake-*/config.{sub,guess} ."
      ]
     }
    ]
   },
   {
    "name": "libcdio",
    "cleanup": [
     "/share/man",
     "/share/info",
     "/include",
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/gnu/libcdio/libcdio-2.1.0.tar.bz2",
      "sha512": "c290821da55fd9ae366670a58857aa6efcebc9f25b7caea063cf12f9cbda84fe770c5f59f972227fda50517ca58c5f39c0137daa0f93179e3daa45303d8b610f"
     }
    ]
   },
   {
    "name": "libcdio-paranoia",
    "cleanup": [
     "/share/man",
     "/include",
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/gnu/libcdio/libcdio-paranoia-10.2+2.0.2.tar.bz2",
      "sha512": "ad199c14e77a097e3e9adda222eb42bea880fdf5d08fa3ae08df27e4685508a85d54d8b0c1a35fb043d550bf735890322efb4e0502b3507d6f9563151e3a36c0"
     }
    ]
   },
   {
    "name": "cmus",
    "cleanup": [
     "/share/man",
     "/share/doc"
    ],
    "build-options": {
     "env": [
      "CONFIG_AAC=y",
      "CONFIG_CUE=y",
      "CONFIG_FFMPEG=y",
      "CONFIG_FLAC=y",
      "CONFIG_MAD=y",
      "CONFIG_MODPLUG=y",
      "CONFIG_MP4=y",
      "CONFIG_MPC=y",
      "CONFIG_MPRIS=y",
      "CONFIG_OPUS=y",
      "CONFIG_PULSE=y",
      "CONFIG_SAMPLERATE=y",
      "CONFIG_VORBIS=y",
      "CONFIG_WAV=y",
      "CONFIG_WAVPACK=y"
     ]
    },
    "post-install": [
     "install -Dm644 cmus.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 cmus.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -Dm644 io.github.cmus.cmus.metainfo.xml /app/share/appdata/${FLATPAK_ID}.appdata.xml"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/cmus/cmus/archive/refs/tags/v2.12.0.tar.gz",
      "sha512": "95dc35e76bb220476986470977d4affc3b7d81a4d057057d62d3f8015abb3c24ec371ece8d3d77fd0e59062c9f3b1bd73dd438ace1eadf3ce39aa86b209a7de5"
     },
     {
      "type": "patch",
      "path": "fix-libmp4v2-check.patch"
     },
     {
      "type": "file",
      "path": "cmus.desktop"
     },
     {
      "type": "file",
      "path": "cmus.svg"
     },
     {
      "type": "file",
      "path": "io.github.cmus.cmus.metainfo.xml"
     }
    ]
   }
  ]
 }
}