{
 "app_id": "com.ugetdm.uGet",
 "source_url": "https://raw.githubusercontent.com/flathub/com.ugetdm.uGet/master/com.ugetdm.uGet.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-download",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:09:00.333890+00:00",
 "manifest": {
  "app-id": "com.ugetdm.uGet",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "uget-gtk",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--filesystem=xdg-download",
   "--share=network",
   "--talk-name=org.freedesktop.Notifications",
   "--device=dri"
  ],
  "modules": [
   "shared-modules/libappindicator/libappindicator-gtk3-12.10.json",
   {
    "name": "c-ares",
    "cleanup": [
     "/include",
     "/share"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/c-ares/c-ares/releases/download/v1.34.6/c-ares-1.34.6.tar.gz",
      "sha256": "912dd7cc3b3e8a79c52fd7fb9c0f4ecf0aaa73e45efda880266a2d6e26b84ef5",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5840,
       "url-template": "https://github.com/c-ares/c-ares/releases/download/v$version/c-ares-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "libssh2",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DBUILD_SHARED_LIBS:BOOL=ON"
    ],
    "cleanup": [
     "/share/doc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.libssh2.org/download/libssh2-1.11.1.tar.gz",
      "sha256": "d9ec76cbe34db98eec3539fe2c899d26b0c837cb3eb466a56b0f109cabf658f7",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1730,
       "url-template": "https://www.libssh2.org/download/libssh2-$version.tar.gz"
      }
     }
    ],
    "post-install": [
     "install -p -D -m 0644 \"../COPYING\" -t \"${FLATPAK_DEST}/share/licenses/libssh2/\";"
    ]
   },
   {
    "name": "aria2",
    "config-opts": [
     "--enable-bittorrent",
     "--enable-metalink",
     "--enable-websocket",
     "--enable-epoll",
     "--with-libcares",
     "--with-libxml2",
     "--with-libz",
     "--with-sqlite3",
     "--without-gnutls",
     "--with-openssl",
     "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.xz",
      "sha256": "60a420ad7085eb616cb6e2bdf0a7206d68ff3d37fb5a956dc44242eb2f79b66b",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 109,
       "url-template": "https://github.com/aria2/aria2/releases/download/release-$version/aria2-$version.tar.xz"
      }
     }
    ],
    "post-install": [
     "install -p -D -m 0644 \"COPYING\" LICENSE* -t \"${FLATPAK_DEST}/share/licenses/aria2/\";"
    ]
   },
   {
    "name": "uGet",
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/urlget/files/uget%20%28stable%29/2.2.3/uget-2.2.3-1.tar.gz",
      "sha256": "11356e4242151b9014fa6209c1f0360b699b72ef8ab47dbeb81cc23be7db9049"
     },
     {
      "type": "patch",
      "path": "gcc-10.patch"
     },
     {
      "type": "patch",
      "path": "gcc-15.patch"
     },
     {
      "type": "patch",
      "path": "use_download_dir_as_default.patch"
     },
     {
      "type": "file",
      "path": "com.ugetdm.uGet.appdata.xml"
     }
    ],
    "post-install": [
     "icon_in=\"pixmaps/icons/hicolor/scalable/apps/uget-icon.svg\"; icon_out=\"uget-icon.png\"; rsvg-convert \"${icon_in}\" -w \"512\" -h \"512\" -a -f png -o \"${icon_out}\"; install -Dm644 ${icon_out} ${FLATPAK_DEST}/share/icons/hicolor/16x16/apps/uget-icon.png; install -Dm644 ${icon_out} ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png;",
     "install -p -D -m 0644 ${FLATPAK_ID}.appdata.xml -t \"${FLATPAK_DEST}/share/appdata/\";",
     "mv uget-gtk.desktop ${FLATPAK_ID}.desktop",
     "install -p -D -m 0644 ${FLATPAK_ID}.desktop -t \"${FLATPAK_DEST}/share/applications/\";",
     "desktop-file-edit --set-key Exec --set-value \"uget-gtk %u\" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "desktop-file-edit --set-icon ${FLATPAK_ID} ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -p -D -m 0644 \"COPYING\" -t \"${FLATPAK_DEST}/share/licenses/uget/\";"
    ]
   }
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/man",
   "*.la"
  ]
 }
}