{
 "app_id": "io.sourceforge.ezthumb",
 "source_url": "https://raw.githubusercontent.com/guihkx/flatpak-app-ezthumb/master/io.sourceforge.ezthumb.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--filesystem=host"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T17:35:37.296383+00:00",
 "manifest": {
  "app-id": "io.sourceforge.ezthumb",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "ezthumb",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--filesystem=host"
  ],
  "cleanup": [
   "/include",
   "/lib/libgd.la"
  ],
  "modules": [
   {
    "name": "ffmpeg",
    "buildsystem": "autotools",
    "config-opts": [
     "--enable-gpl",
     "--enable-pic",
     "--enable-shared",
     "--disable-static",
     "--disable-doc",
     "--disable-programs",
     "--disable-avdevice",
     "--disable-swresample",
     "--disable-swscale",
     "--disable-postproc",
     "--disable-avfilter",
     "--disable-network"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n4.4.8.tar.gz",
      "dest-filename": "ffmpeg.tar.gz",
      "sha256": "533bf9dd1b07134558490743c12aaf5b3ba3b521a46862b9c3fd764c2d3dd2b2",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5405,
       "versions": {
        "<": "5"
       },
       "url-template": "https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n$version.tar.gz"
      }
     }
    ],
    "cleanup": [
     "/lib/pkgconfig",
     "/share/ffmpeg"
    ]
   },
   "shared-modules/gtk2/gtk2.json",
   {
    "name": "libgd",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libgd/libgd/releases/download/gd-2.3.3/libgd-2.3.3.tar.xz",
      "dest-filename": "libgd.tar.xz",
      "sha256": "3fe822ece20796060af63b7c60acb151e5844204d289da0ce08f8fdf131e5a61",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/libgd/libgd/releases/latest",
       "version-query": ".tag_name | sub(\"^gd-\"; \"\")",
       "url-query": ".assets[] | select(.name == \"libgd-\\($version).tar.xz\") | .browser_download_url"
      }
     }
    ],
    "cleanup": [
     "/bin",
     "/lib/pkgconfig"
    ]
   },
   {
    "name": "ezthumb",
    "buildsystem": "simple",
    "build-commands": [
     "./configure --prefix=/app --with-gui=gtk2",
     "make EXTRAINCS=\"$(pkg-config --cflags glib-2.0 gtk+-2.0 harfbuzz)\"",
     "make install"
    ],
    "post-install": [
     "desktop-file-edit --add-category AudioVideo ezthumb.desktop",
     "desktop-file-edit --set-icon $FLATPAK_ID ezthumb.desktop",
     "install -Dm644 external/icons/ezthumb128.png /app/share/icons/hicolor/128x128/apps/$FLATPAK_ID.png",
     "install -Dm644 external/icons/SMirC-thumbsup.svg /app/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg",
     "install -Dm644 ezthumb.desktop /app/share/applications/$FLATPAK_ID.desktop",
     "install -Dm644 ezthumb.1 /app/share/man/man1/ezthumb.1",
     "install -Dm644 -t /app/share/metainfo $FLATPAK_ID.metainfo.xml"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/project/ezthumb/ezthumb-3.6.7.tar.bz2",
      "sha256": "1d04a1521204b25454b8a2cedf4150df9c3c7d68059ed5742d03f7a30060674e",
      "x-checker-data": {
       "type": "html",
       "url": "https://sourceforge.net/projects/ezthumb/rss?path=/",
       "version-pattern": "/files/ezthumb-([\\d.]+)\\.tar.bz2",
       "url-template": "https://downloads.sourceforge.net/project/ezthumb/ezthumb-$version.tar.bz2"
      }
     },
     {
      "type": "file",
      "path": "io.sourceforge.ezthumb.metainfo.xml"
     }
    ]
   }
  ]
 }
}