{
 "app_id": "org.freedesktop.Sdk.Extension.dnf",
 "source_url": "https://raw.githubusercontent.com/ryanabx/org.freedesktop.Sdk.Extension.dnf/main/org.freedesktop.Sdk.Extension.dnf.json",
 "runtime": "org.freedesktop.Sdk",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [],
 "module_count": 14,
 "fetched_at": "2026-09-17T17:38:45.654014+00:00",
 "manifest": {
  "$schema": "https://raw.githubusercontent.com/flatpak/flatpak-builder/refs/heads/main/data/flatpak-manifest.schema.json",
  "id": "org.freedesktop.Sdk.Extension.dnf",
  "branch": "24.08",
  "runtime": "org.freedesktop.Sdk",
  "build-extension": true,
  "sdk": "org.freedesktop.Sdk",
  "runtime-version": "24.08",
  "sdk-extensions": [],
  "build-options": {
   "prefix": "/usr/lib/sdk/dnf",
   "env": {
    "PKG_CONFIG_PATH": "/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/sdk/dnf/lib/pkgconfig:/usr/lib/sdk/dnf/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig"
   }
  },
  "modules": [
   {
    "name": "rpm",
    "build-options": {
     "prefix": "/usr/lib/sdk/dnf",
     "env": {
      "PKG_CONFIG_PATH": "/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/sdk/dnf/lib/pkgconfig:/usr/lib/sdk/dnf/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig"
     }
    },
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "dest": ".",
      "url": "https://ftp.osuosl.org/pub/rpm/releases/rpm-4.20.x/rpm-4.20.1.tar.bz2",
      "archive-type": "tar-bzip2",
      "sha256": "52647e12638364533ab671cbc8e485c96f9f08889d93fe0ed104a6632661124f"
     }
    ],
    "build-commands": [
     "mkdir _build",
     "cd _build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/lib/sdk/dnf -DCMAKE_INSTALL_LIBDIR=lib -DWITH_SEQUOIA=OFF -DWITH_AUDIT=OFF -DWITH_DBUS=OFF -DENABLE_PYTHON=OFF && make && make install"
    ],
    "modules": [
     "shared-modules/lua5.4/lua-5.4.json",
     {
      "name": "popt",
      "buildsystem": "simple",
      "sources": [
       {
        "type": "archive",
        "dest": ".",
        "url": "http://ftp.rpm.org/popt/releases/popt-1.x/popt-1.19.tar.gz",
        "archive-type": "tar-gzip",
        "sha256": "c25a4838fc8e4c1c8aacb8bd620edb3084a3d63bf8987fdad3ca2758c63240f9"
       }
      ],
      "build-commands": [
       "./configure --prefix=/usr/lib/sdk/dnf",
       "make",
       "make install",
       "ln -sf /usr/lib/sdk/dnf/lib/pkgconfig/popt.pc /usr/lib/sdk/dnf/lib/pkgconfig/popt1.19.pc",
       "ln -sf /usr/lib/sdk/dnf/lib/pkgconfig/popt.pc /usr/lib/sdk/dnf/lib/pkgconfig/popt119.pc"
      ]
     }
    ]
   },
   {
    "name": "dnf",
    "build-options": {
     "prefix": "/usr/lib/sdk/dnf",
     "env": {
      "PKG_CONFIG_PATH": "/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/sdk/dnf/lib/pkgconfig:/usr/lib/sdk/dnf/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig"
     }
    },
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/rpm-software-management/dnf5/archive/refs/tags/5.2.16.0.tar.gz",
      "archive-type": "tar-gzip",
      "dest": ".",
      "sha256": "d2f1cc91f82eb6d04239a8548dede4cc1688c07d2440284fa5ee6042380ccadb"
     }
    ],
    "build-commands": [
     "mkdir _build",
     "cd _build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/lib/sdk/dnf -DCMAKE_INSTALL_LIBDIR=lib -DWITH_PYTHON3=OFF -DWITH_GO=OFF -DWITH_RUBY=OFF -DWITH_PERL5=OFF -DWITH_TESTS=OFF -DWITH_HTML=OFF -DWITH_SYSTEMD=OFF && make && make install"
    ],
    "modules": [
     {
      "name": "json-c",
      "buildsystem": "simple",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/json-c/json-c/archive/refs/tags/json-c-0.18-20240915.tar.gz",
        "archive-type": "tar-gzip",
        "dest": ".",
        "sha256": "3112c1f25d39eca661fe3fc663431e130cc6e2f900c081738317fba49d29e298"
       }
      ],
      "build-commands": [
       "mkdir _build",
       "cd _build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/lib/sdk/dnf -DCMAKE_INSTALL_LIBDIR=lib && make && make install"
      ]
     },
     {
      "name": "libmodulemd",
      "buildsystem": "simple",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/fedora-modularity/libmodulemd/archive/refs/tags/2.15.2.tar.gz",
        "archive-type": "tar-gzip",
        "dest": ".",
        "sha256": "57e7dbc5f1d30c2478f6467121e7e35afa221fd07ec681f5a01e9addc5aed502"
       }
      ],
      "build-commands": [
       "meson setup builddir --prefix=/usr/lib/sdk/dnf/ --libdir=lib -Dwith_docs=false -Dwith_py3=false",
       "meson compile -C builddir",
       "meson install -C builddir"
      ]
     },
     {
      "name": "libzstd",
      "buildsystem": "simple",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/facebook/zstd/archive/refs/tags/v1.5.7.tar.gz",
        "archive-type": "tar-gzip",
        "dest": ".",
        "sha256": "37d7284556b20954e56e1ca85b80226768902e2edabd3b649e9e72c0c9012ee3"
       }
      ],
      "build-commands": [
       "make PREFIX=/usr/lib/sdk/dnf && make PREFIX=/usr/lib/sdk/dnf install"
      ]
     },
     {
      "name": "zchunk",
      "buildsystem": "simple",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/zchunk/zchunk/archive/refs/tags/1.5.2.tar.gz",
        "archive-type": "tar-gzip",
        "dest": ".",
        "sha256": "b7346d950fec2e0c72761f2a9148b0ece84574c49076585abf4bebd369cd4c60"
       }
      ],
      "build-commands": [
       "meson setup builddir --prefix=/usr/lib/sdk/dnf/ --libdir=lib -Ddocs=false",
       "meson compile -C builddir",
       "meson install -C builddir"
      ]
     },
     {
      "name": "librepo",
      "buildsystem": "simple",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/rpm-software-management/librepo/archive/refs/tags/1.20.0.tar.gz",
        "archive-type": "tar-gzip",
        "dest": ".",
        "sha256": "c21dd3caefe97ea58bc865f92095a9d2db2ec8aab49d0c714d4742094db930b6"
       },
       {
        "type": "patch",
        "path": "patches/librepo-include-zchunklib.patch"
       }
      ],
      "build-commands": [
       "mkdir _build",
       "cd _build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/lib/sdk/dnf -DCMAKE_INSTALL_LIBDIR=lib -DENABLE_TESTS=OFF -DENABLE_DOCS=OFF -DENABLE_PYTHON=OFF -DWITH_ZCHUNK=OFF && make && make install"
      ]
     },
     {
      "name": "libsolv",
      "buildsystem": "simple",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/openSUSE/libsolv/archive/refs/tags/0.7.35.tar.gz",
        "archive-type": "tar-gzip",
        "dest": ".",
        "sha256": "e6ef552846f908beb3bbf6ca718b6dd431bd8a281086d82af9a6d2a3ba919be5"
       }
      ],
      "build-commands": [
       "mkdir _build",
       "cd _build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/lib/sdk/dnf -DCMAKE_INSTALL_LIBDIR=lib -DENABLE_RPMDB=ON -DENABLE_RPMPKG=ON -DENABLE_RPMDB_BYRPMHEADER=ON -DENABLE_RPMDB_LIBRPM=ON -DENABLE_RPMDB_BDB=ON -DENABLE_RPMPKG_LIBRPM=ON -DENABLE_RPMMD=ON -DENABLE_COMPS=ON -DENABLE_LZMA_COMPRESSION=ON -DENABLE_BZIP2_COMPRESSION=ON -DENABLE_COMPLEX_DEPS=ON -DENABLE_APPDATA=ON -DFEDORA=1  && make && make install"
      ]
     },
     {
      "name": "sdbus-cpp",
      "buildsystem": "simple",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/Kistler-Group/sdbus-cpp/archive/refs/tags/v2.1.0.tar.gz",
        "archive-type": "tar-gzip",
        "dest": ".",
        "sha256": "6025e5dc6cddd532ff960d14e68ced5f42a1916b23a73fea6bcb437f06992eaf"
       }
      ],
      "build-commands": [
       "mkdir _build",
       "cd _build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/lib/sdk/dnf -DCMAKE_INSTALL_LIBDIR=lib -DSDBUSCPP_BUILD_TESTS=OFF && make && make install"
      ]
     },
     {
      "name": "toml11",
      "buildsystem": "simple",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/ToruNiina/toml11/archive/refs/tags/v4.4.0.tar.gz",
        "archive-type": "tar-gzip",
        "dest": ".",
        "sha256": "815bfe6792aa11a13a133b86e7f0f45edc5d71eb78f5fb6686c49c7f792b9049"
       }
      ],
      "build-commands": [
       "mkdir _build",
       "cd _build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/lib/sdk/dnf -DCMAKE_INSTALL_LIBDIR=lib && make && make install"
      ]
     }
    ]
   },
   {
    "name": "scripts",
    "sources": [
     {
      "type": "script",
      "commands": [
       "export PATH=$PATH:/usr/lib/sdk/dnf/bin"
      ],
      "dest-filename": "enable.sh"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "cp enable.sh /usr/lib/sdk/dnf/"
    ]
   },
   {
    "name": "appdata",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm0644 org.freedesktop.Sdk.Extension.dnf.appdata.xml -t /usr/lib/sdk/dnf/share/metainfo"
    ],
    "sources": [
     {
      "type": "file",
      "path": "org.freedesktop.Sdk.Extension.dnf.appdata.xml"
     }
    ]
   }
  ]
 }
}