{
 "app_id": "com.github.huluti.Curtail",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.huluti.Curtail/master/com.github.huluti.Curtail.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-17T16:07:39.955314+00:00",
 "manifest": {
  "id": "com.github.huluti.Curtail",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "curtail",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--filesystem=home"
  ],
  "cleanup": [
   "/share/man"
  ],
  "cleanup-commands": [
   "python3 -m compileall --invalidation-mode=unchecked-hash /app"
  ],
  "modules": [
   {
    "name": "jpegoptim",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/tjko/jpegoptim/archive/refs/tags/v1.5.6.tar.gz",
      "sha256": "661a808dfffa933d78c6beb47a2937d572b9f03e94cbaaab3d4c0d72f410e9be",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1472,
       "url-template": "https://github.com/tjko/jpegoptim/archive/refs/tags/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "gccfix",
    "buildsystem": "simple",
    "build-commands": [
     "ln -s /usr/bin/gcc /app/bin/aarch64-linux-gnu-gcc"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "oxipng",
    "buildsystem": "simple",
    "build-commands": [
     "cargo --offline fetch --manifest-path Cargo.toml --verbose",
     "cargo --offline build --release --verbose",
     "install -Dm 755 target/release/oxipng -t /app/bin"
    ],
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_HOME": "/run/build/oxipng/cargo"
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/shssoichiro/oxipng/archive/refs/tags/v10.1.1.tar.gz",
      "sha256": "ce19b1f060d586ceb3ea682f27d00e41675ec4093d8ac200a61ccd9d967d0999",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 209796,
       "url-template": "https://github.com/shssoichiro/oxipng/archive/refs/tags/v$version.tar.gz"
      }
     },
     "oxipng-sources.json"
    ]
   },
   {
    "name": "pngquant",
    "buildsystem": "simple",
    "build-commands": [
     "cargo --offline fetch --manifest-path Cargo.toml --verbose",
     "cargo --offline build --release --verbose",
     "install -Dm 755 target/release/pngquant -t /app/bin"
    ],
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_HOME": "/run/build/pngquant/cargo"
     }
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/kornelski/pngquant.git",
      "tag": "3.0.3",
      "commit": "53a332a58f44357b6b41842a54d74aa1e245913d",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     },
     "pngquant-sources.json"
    ]
   },
   "scour-sources.json",
   {
    "name": "curtail",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Huluti/Curtail",
      "tag": "1.16.2",
      "commit": "1995a665d893f847a8e7346665dfe8a17552e269"
     }
    ]
   }
  ]
 }
}