{
    "app-id": "org.gnome.Papers.Devel",
    "runtime": "org.gnome.Platform",
    "runtime-version": "master",
    "sdk": "org.gnome.Sdk",
    "sdk-extensions": [
        "org.freedesktop.Sdk.Extension.rust-stable"
    ],
    "command": "papers",
    "tags": [
        "devel"
    ],
    "copy-icon": true,
    "finish-args": [
        "--share=ipc",
        "--socket=fallback-x11",
        "--device=dri",
        "--socket=wayland",
        "--socket=pulseaudio",
        "--talk-name=org.gtk.vfs.*",
        "--filesystem=home:ro",
        "--filesystem=/media:ro",
        "--filesystem=/run/media:ro",
        "--filesystem=xdg-run/gvfsd"
    ],
    "build-options": {
        "append-path": "/usr/lib/sdk/rust-stable/bin:",
        "build-args": [
            "--share=network"
        ],
        "cflags": "-O2 -g",
        "cxxflags": "-O2 -g",
        "env": {
            "V": "1"
        }
    },
    "cleanup": [
        "/include",
        "/lib/pkgconfig",
        "/share/pkgconfig",
        "/share/aclocal",
        "/man",
        "/share/man",
        "/share/gtk-doc",
        "/share/vala",
        "*.la",
        "*.a"
    ],
    "modules": [
        {
            "name": "popplerdata",
            "no-autogen": true,
            "make-install-args": [
                "prefix=/app"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://poppler.freedesktop.org/poppler-data-0.4.12.tar.gz",
                    "sha256": "c835b640a40ce357e1b83666aabd95edffa24ddddd49b8daff63adb851cdab74",
                    "x-checker-data": {
                        "type": "anitya",
                        "project-id": 3687,
                        "url-template": "https://poppler.freedesktop.org/poppler-data-$version.tar.gz"
                    }
                }
            ]
        },
        {
            "name": "poppler",
            "buildsystem": "cmake-ninja",
            "config-opts": [
                "-DCMAKE_INSTALL_LIBDIR=/app/lib",
                "-DCMAKE_INSTALL_INCLUDEDIR=/app/include",
                "-DBUILD_GTK_TESTS=OFF",
                "-DBUILD_CPP_TESTS=OFF",
                "-DENABLE_CPP=OFF",
                "-DENABLE_BOOST=OFF",
                "-DENABLE_GOBJECT_INTROSPECTION=OFF",
                "-DENABLE_LIBOPENJPEG=openjpeg2",
                "-DENABLE_QT5=OFF",
                "-DENABLE_QT6=OFF"
            ],
            "cleanup": [
                "/bin"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://poppler.freedesktop.org/poppler-24.07.0.tar.xz",
                    "sha256": "19eb4f49198e4ae3fd9e5a6cf24d0fc7e674e8802046a7de14baab1e40cc2f1d",
                    "x-checker-data": {
                        "type": "anitya",
                        "project-id": 3686,
                        "url-template": "https://poppler.freedesktop.org/poppler-$version.tar.xz"
                    }
                }
            ]
        },
        {
            "name": "exempi",
            "config-opts": [
                "--disable-unittest",
                "--disable-samples"
            ],
            "sources": [
                {
                    "type": "git",
                    "url": "https://gitlab.freedesktop.org/libopenraw/exempi.git",
                    "tag": "2.6.5",
                    "x-checker-data": {
                        "type": "git",
                        "tag-pattern": "^([\\d.]+)$"
                    },
                    "commit": "01ed352bbf18c2be2bdbd0125c88901b9db0b9c3"
                }
            ]
        },
        {
            "name": "djvulibre",
            "config-opts": [
                "--disable-desktopfiles"
            ],
            "cleanup": [
                "/bin"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://downloads.sourceforge.net/project/djvu/DjVuLibre/3.5.28/djvulibre-3.5.28.tar.gz",
                    "sha256": "fcd009ea7654fde5a83600eb80757bd3a76998e47d13c66b54c8db849f8f2edc",
                    "x-checker-data": {
                        "type": "anitya",
                        "project-id": 10159,
                        "url-template": "https://downloads.sourceforge.net/project/djvu/DjVuLibre/$version/djvulibre-$version.tar.gz"
                    }
                }
            ]
        },
        {
            "name": "libgxps",
            "buildsystem": "meson",
            "config-opts": [
                "-Denable-test=false",
                "-Ddisable-introspection=true"
            ],
            "cleanup": [
                "/bin"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://download.gnome.org/sources/libgxps/0.3/libgxps-0.3.2.tar.xz",
                    "sha256": "6d27867256a35ccf9b69253eb2a88a32baca3b97d5f4ef7f82e3667fa435251c"
                }
            ]
        },
        {
            "name": "papers",
            "buildsystem": "meson",
            "config-opts": [
                "-Dnautilus=false",
                "-Dthumbnailer=false",
                "-Ddocumentation=false",
                "-Dintrospection=disabled",
                "-Duser_doc=false",
                "-Dprofile=devel",
                "-Dtests=false"
            ],
            "sources": [
                {
                    "type": "git",
                    "branch": "main",
                    "url": "https://gitlab.gnome.org/GNOME/Incubator/papers.git"
                }
            ]
        }
    ]
}
