{
 "app_id": "io.github.rinigus.OSMScoutServer",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.rinigus.OSMScoutServer/master/io.github.rinigus.OSMScoutServer.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-23.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=host",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.freedesktop.DBus"
 ],
 "module_count": 16,
 "fetched_at": "2026-09-17T16:12:06.897684+00:00",
 "manifest": {
  "app-id": "io.github.rinigus.OSMScoutServer",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-23.08",
  "sdk": "org.kde.Sdk",
  "command": "osmscout-server-gui",
  "finish-args": [
   "--filesystem=host",
   "--device=dri",
   "--share=ipc",
   "--socket=x11",
   "--socket=wayland",
   "--share=network",
   "--talk-name=org.freedesktop.DBus"
  ],
  "rename-icon": "osmscout-server",
  "cleanup": [
   "/include",
   "/lib/mapnik",
   "/lib/pkgconfig",
   "/lib/*.a",
   "/share/doc",
   "/share/info",
   "/share/man",
   "/share/stylesheets",
   "/bin/c*",
   "/bin/g*",
   "/bin/inv*",
   "/bin/kc*",
   "/bin/libpostal_data",
   "/bin/lua",
   "/bin/luac",
   "/bin/mapnik-config",
   "/bin/marisa*",
   "/bin/nad2bin",
   "/bin/proj",
   "/bin/protoc",
   "/bin/shapeindex",
   "/bin/valhalla*"
  ],
  "modules": [
   {
    "name": "kyoto",
    "config-opts": [
     "--disable-atomic"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://dbmx.net/kyotocabinet/pkg/kyotocabinet-1.2.79.tar.gz",
      "sha256": "67fb1da4ae2a86f15bb9305f26caa1a7c0c27d525464c71fd732660a95ae3e1d"
     }
    ]
   },
   {
    "name": "marisa",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/s-yata/marisa-trie/releases/download/v0.2.5/marisa-0.2.5.tar.gz",
      "sha256": "0e9a61052764e99ffeea793a0bb1d40947df6cd2c353e294823ce5652bcb2ea6"
     }
    ]
   },
   {
    "name": "libpostal",
    "subdir": "libpostal",
    "config-opts": [
     "--datadir=/app/shared/libpostal/data",
     "--disable-data-download"
    ],
    "build-options": {
     "arch": {
      "aarch64": {
       "config-opts": [
        "--disable-sse2"
       ]
      }
     }
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/rinigus/pkg-libpostal.git",
      "commit": "69d0561b3d367c2db1dd7db1c4d652b865b8f83c"
     },
     {
      "type": "script",
      "commands": [
       "exec ./bootstrap.sh"
      ]
     }
    ]
   },
   "boost.json",
   "shared-modules/lua5.3/lua-5.3.5.json",
   {
    "name": "protobuf",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protobuf-cpp-3.6.1.tar.gz",
      "sha256": "b3732e471a9bb7950f090fd0457ebd2536a9ba0891b7f3785919c654fe2a2529"
     }
    ]
   },
   {
    "name": "lz4",
    "subdir": "lib",
    "no-autogen": true,
    "make-args": [
     "lib"
    ],
    "make-install-args": [
     "PREFIX=/app"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/lz4/lz4/archive/v1.8.3/lz4-1.8.3.tar.gz",
      "sha256": "33af5936ac06536805f9745e0b6d61da606a1f8b4cc5c04dd3cbaca3b9b4fc43"
     }
    ]
   },
   {
    "name": "valhalla-lite",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBOOST_ROOT=/app",
     "-DBUILD_SHARED_LIBS=OFF",
     "-DENABLE_DATA_TOOLS=OFF",
     "-DENABLE_PYTHON_BINDINGS=OFF",
     "-DENABLE_SERVICES=OFF",
     "-DENABLE_TESTS=OFF",
     "-DENABLE_WERROR=OFF",
     "-DENABLE_SINGLE_FILES_WERROR=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/valhalla/valhalla.git",
      "commit": "0cc7d6ec7f2d7fe09600f66f99e19486faefc8dd"
     }
    ]
   },
   {
    "name": "microhttp",
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.59.tar.gz",
      "sha256": "9b9ccd7d0b11b0e179f1f58dc2caa3e0c62c8609e1e1dc7dcaadf941b67d923c"
     }
    ]
   },
   {
    "name": "proj",
    "sources": [
     {
      "type": "archive",
      "url": "http://download.osgeo.org/proj/proj-5.2.0.tar.gz",
      "sha256": "ef919499ffbc62a4aae2659a55e2b25ff09cccbbe230656ba71c6224056c7e60"
     }
    ]
   },
   {
    "name": "python2",
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz",
      "sha256": "b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43"
     }
    ]
   },
   {
    "name": "sqlite",
    "buildsystem": "simple",
    "build-commands": [
     "./configure --prefix=/app --enable-fts5 --enable-fts3 --enable-rtree CFLAGS=\"$CFLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_HAVE_ISNAN=1 -DSQLITE_TEMP_STORE=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1\"",
     "make",
     "make install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.sqlite.org/2020/sqlite-autoconf-3340000.tar.gz",
      "sha256": "bf6db7fae37d51754737747aaaf413b4d6b3b5fbacd52bdb2d0d6e5b2edd9aee"
     }
    ]
   },
   {
    "name": "mapnik",
    "buildsystem": "simple",
    "build-commands": [
     "make reset",
     "./configure BOOST_INCLUDES=/app/include BOOST_LIBS=/app/lib PROJ_INCLUDES=/app/include PROJ_LIBS=/app/lib INPUT_PLUGINS=\"sqlite,shape\" PREFIX=/app LINKING=shared OPTIMIZATION=2 CPP_TESTS=no CAIRO=no PLUGIN_LINKING=static MEMORY_MAPPED_FILE=no DEMO=no MAPNIK_INDEX=no MAPNIK_RENDER=no",
     "make install",
     "cp -r deps/mapbox/variant/include/mapbox /app/include"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/mapnik/mapnik/releases/download/v3.1.0/mapnik-v3.1.0.tar.bz2",
      "sha256": "43d76182d2a975212b4ad11524c74e577576c11039fdab5286b828397d8e6261"
     },
     {
      "type": "patch",
      "path": "patches/mapnik/mapnik.twkb.patch"
     },
     {
      "type": "patch",
      "path": "patches/mapnik/mapnik.stdint.patch"
     },
     {
      "type": "patch",
      "path": "patches/mapnik/mapnik.gcc14.patch"
     },
     {
      "type": "patch",
      "path": "patches/mapnik/mapnik.issue3384.patch"
     }
    ]
   },
   {
    "name": "osmscout-server-fonts",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir /app/share/osmscout-server-fonts",
     "cp -r fonts /app/share/osmscout-server-fonts"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/rinigus/osmscout-server-fonts.git",
      "commit": "9d550dc777695c4f731ac854aaec91bee79efde0"
     }
    ]
   },
   {
    "name": "date",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DENABLE_DATE_TESTING=OFF",
     "-DBUILD_TZ_LIB=ON"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/HowardHinnant/date.git",
      "commit": "77bd6b92a4f7f6a1bbbc44952e6502a3448376b0"
     }
    ]
   },
   {
    "name": "osmscout-server",
    "buildsystem": "simple",
    "build-commands": [
     "qmake PREFIX=/app SCOUT_FLAVOR=kirigami CONFIG+=\"disable_systemd\" CONFIG+=use_dbusactivation DBUS_SERVICE_PATH=/app/share/dbus-1/services osmscout-server.pro",
     "make -j $FLATPAK_BUILDER_N_JOBS install",
     "mkdir -p /app/share/applications",
     "mkdir -p /app/share/appdata",
     "install -D packaging/flatpak/io.github.rinigus.OSMScoutServer.desktop /app/share/applications",
     "install -D packaging/osmscout-server.appdata.xml /app/share/appdata/io.github.rinigus.OSMScoutServer.appdata.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/rinigus/osmscout-server.git",
      "commit": "8d4850484248a17fcf9f7b69c47459aafaa5d43f"
     }
    ]
   }
  ]
 }
}