{
 "app_id": "com.github.kalibari.audok",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.kalibari.audok/master/com.github.kalibari.audok.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-download",
  "--filesystem=xdg-run/pipewire-0:ro",
  "--filesystem=xdg-music"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:07:39.955324+00:00",
 "manifest": {
  "id": "com.github.kalibari.audok",
  "runtime": "org.gnome.Platform",
  "sdk": "org.gnome.Sdk",
  "runtime-version": "49",
  "command": "audok",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--filesystem=xdg-music",
   "--filesystem=xdg-download",
   "--filesystem=xdg-run/pipewire-0:ro",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--socket=wayland"
  ],
  "modules": [
   {
    "name": "streamripper",
    "no-autogen": true,
    "no-make-install": false,
    "build-options": {
     "config-opts": [
      "--disable-static"
     ]
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/sourceforge/streamripper/streamripper-1.64.6.tar.gz",
      "sha512": "8477086d0099f6de861f1c47112476c427073b6e8127bbaaa2dd3e7930fe9a5c6d9b2c68d4a317f1bc0b20c625e665d5c245189049d35468aa83cf51828d4428"
     },
     {
      "type": "shell",
      "commands": [
       "cp -p /usr/share/automake-*/config.{sub,guess} .",
       "cp -p /usr/share/automake-*/config.{sub,guess} libmad-0.15.1b/"
      ]
     },
     {
      "type": "patch",
      "paths": [
       "patches/buildfix.patch"
      ]
     }
    ]
   },
   {
    "name": "yt-dlp",
    "no-autogen": true,
    "no-make-install": true,
    "make-args": [
     "yt-dlp",
     "PYTHON=/usr/bin/python3"
    ],
    "post-install": [
     "install yt-dlp /app/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/yt-dlp/yt-dlp/releases/download/2026.08.19/yt-dlp.tar.gz",
      "sha512": "a61c308d8cb34e37030a95d6bf9924d43f349674e73bc3ff16306a8a89cc4d154da18c146a1675c32bbdb35a3dd12dde337b2f8e461786b2067f69dd7d600bb0",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/yt-dlp/yt-dlp/tags",
       "version-query": "[.[].name | select(. != \"nightly\")] | sort[-1]",
       "url-query": "\"https://github.com/yt-dlp/yt-dlp/releases/download/\" + $version + \"/yt-dlp.tar.gz\""
      }
     }
    ]
   },
   {
    "name": "audok",
    "no-autogen": true,
    "make-install-args": [
     "PREFIX=/app",
     "APPDIR=/app/audok"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/kalibari/audok/archive/refs/tags/v1.0.29.tar.gz",
      "sha512": "5ba634e02b04cd893bbc395cc544bcea8ba576d93d225bc30d7320a37f8bfcb35018e9c9b01a507feaefee97483297915e5c2f7b816157374f62fd96bbb9c878"
     },
     {
      "type": "file",
      "path": "com.github.kalibari.audok.appdata.xml"
     }
    ],
    "post-install": [
     "install -Dm644 com.github.kalibari.audok.appdata.xml /app/share/appdata/com.github.kalibari.audok.appdata.xml"
    ]
   }
  ]
 }
}