{
  "id" : "io.github.martchus.syncthingtray",
  "runtime" : "org.kde.Platform",
  "runtime-version" : "6.10",
  "runtime-commit" : "0af8c74be016b93f6f72bbdc3f179df47dc1274d40b3bb05c824fd1360b1746c",
  "sdk" : "org.kde.Sdk",
  "sdk-commit" : "9b03a9939e6155651873d36c88b4d03a2eb02ea68f6088b0e4960d6934261162",
  "command" : "syncthingtray",
  "modules" : [
    {
      "name" : "syncthing",
      "buildsystem" : "simple",
      "sources" : [
        {
          "url" : "https://github.com/syncthing/syncthing/releases/download/v2.1.1/syncthing-source-v2.1.1.tar.gz",
          "sha256" : "418a99452f484abf30e403b769d0cf914a038142cd1a7e10be85b68f45d9f42a",
          "x-checker-data" : {
            "type" : "anitya",
            "project-id" : 11814,
            "url-template" : "https://github.com/syncthing/syncthing/releases/download/v$version/syncthing-source-v$version.tar.gz"
          },
          "type" : "archive"
        }
      ],
      "build-options" : {
        "env" : {
          "GOBIN" : "/app/bin"
        }
      },
      "build-commands" : [
        ". /usr/lib/sdk/golang/enable.sh\nexport GOPATH=$PWD/go\ngo version\n# go mod vendor\n#go build -mod=vendor\n#go mod download -json > download.json\nenv GOFLAGS=-mod=vendor go run build.go -no-upgrade build\n",
        "install -Dm755 -t /app/bin syncthing"
      ]
    },
    {
      "name" : "boost",
      "buildsystem" : "simple",
      "sources" : [
        {
          "url" : "https://archives.boost.io/release/1.90.0/source/boost_1_90_0.tar.bz2",
          "sha256" : "49551aff3b22cbc5c5a9ed3dbc92f0e23ea50a0f7325b0d198b705e8ee3fc305",
          "x-checker-data" : {
            "type" : "anitya",
            "project-id" : 6845,
            "stable-only" : true,
            "url-template" : "https://archives.boost.io/release/$version/source/boost_${major}_${minor}_$patch.tar.bz2"
          },
          "type" : "archive"
        }
      ],
      "build-commands" : [
        "./bootstrap.sh --prefix=/app",
        "./b2 --with-filesystem -j $FLATPAK_BUILDER_N_JOBS link=static install"
      ]
    },
    {
      "name" : "cpp-utilities",
      "buildsystem" : "cmake-ninja",
      "config-opts" : [
        "-DCMAKE_BUILD_TYPE=Release"
      ],
      "sources" : [
        {
          "url" : "https://github.com/Martchus/cpp-utilities.git",
          "commit" : "af8ae569bee6aefc89564020b59dfa78f74cca4f",
          "x-checker-data" : {
            "type" : "git",
            "tag-pattern" : "^v([\\d.]+)$"
          },
          "type" : "git"
        }
      ]
    },
    {
      "name" : "qtutilities",
      "buildsystem" : "cmake-ninja",
      "config-opts" : [
        "-DCMAKE_BUILD_TYPE:STRING=Release",
        "-DQT_PACKAGE_PREFIX:STRING='Qt6'",
        "-DBUILTIN_TRANSLATIONS:BOOL=ON"
      ],
      "sources" : [
        {
          "url" : "https://github.com/Martchus/qtutilities.git",
          "commit" : "d84eed2af9cf48b3e3dcf1b55e7442a1eeb270cc",
          "x-checker-data" : {
            "type" : "git",
            "tag-pattern" : "^v([\\d.]+)$"
          },
          "type" : "git"
        }
      ]
    },
    {
      "name" : "ForkAwesome",
      "buildsystem" : "simple",
      "sources" : [
        {
          "url" : "https://github.com/ForkAwesome/Fork-Awesome/archive/refs/tags/1.2.0.tar.gz",
          "sha256" : "23fba5f191f204e0414c547bf4c9b10fd7ca42c151260e8f64698449a75fbdb3",
          "type" : "archive"
        }
      ],
      "cleanup" : [
        "*"
      ],
      "build-commands" : [
        "install -D ./fonts/forkawesome-webfont.woff2 /app/ForkAwesome/forkawesome-webfont.woff2",
        "install -D ./src/icons/icons.yml /app/ForkAwesome/icons.yml"
      ]
    },
    {
      "name" : "perl-libs",
      "buildsystem" : "simple",
      "sources" : [
        {
          "dest" : "perl-libs/YAML-LibYAML",
          "url" : "https://cpan.metacpan.org/authors/id/T/TI/TINITA/YAML-LibYAML-v0.904.0.tar.gz",
          "sha256" : "b656b0b11a4219c125679e8cbf7436a3f636e833fd63cf322d171dcb7c3eaf3e",
          "type" : "archive"
        },
        {
          "dest" : "perl-libs",
          "commands" : [
            "set -e",
            "function make_install {",
            "    mod_dir=$1",
            "    cd $mod_dir",
            "    if [ -f 'Makefile.PL' ]; then",
            "        perl Makefile.PL PREFIX=${FLATPAK_DEST} && make install PREFIX=${FLATPAK_DEST}",
            "    elif [ -f 'Build.PL' ]; then",
            "        perl Build.PL && ./Build && ./Build install",
            "    else",
            "        echo 'No Makefile.PL or Build.PL found. Do not know how to install this module'",
            "        exit 1",
            "    fi",
            "}",
            "(make_install perl-libs/YAML-LibYAML)"
          ],
          "dest-filename" : "install.sh",
          "type" : "script"
        }
      ],
      "cleanup" : [
        "*"
      ],
      "post-install" : [
        "chmod -Rf u+w /app/lib/perl5/site_perl"
      ],
      "build-commands" : [
        "perl-libs/install.sh"
      ]
    },
    {
      "name" : "qtforkawesome",
      "buildsystem" : "cmake-ninja",
      "config-opts" : [
        "-DCMAKE_BUILD_TYPE:STRING=Release",
        "-DQT_PACKAGE_PREFIX:STRING=Qt6",
        "-DBUILTIN_TRANSLATIONS:BOOL=ON",
        "-DFORK_AWESOME_FONT_FILE=/app/ForkAwesome/forkawesome-webfont.woff2",
        "-DFORK_AWESOME_ICON_DEFINITIONS=/app/ForkAwesome/icons.yml"
      ],
      "sources" : [
        {
          "url" : "https://github.com/Martchus/qtforkawesome.git",
          "commit" : "5f2f82dedae82d0bbf1c06e8e2dd307f1db4e0c4",
          "x-checker-data" : {
            "type" : "git",
            "tag-pattern" : "^v([\\d.]+)$"
          },
          "type" : "git"
        }
      ],
      "build-options" : {
        "arch" : {
          "aarch64" : {
            "env" : {
              "PERL5LIB" : "/app/lib/perl5/site_perl/5.42/aarch64-linux-gnu"
            }
          },
          "x86_64" : {
            "env" : {
              "PERL5LIB" : "/app/lib/perl5/site_perl/5.42/x86_64-linux-gnu"
            }
          }
        }
      }
    },
    {
      "name" : "syncthingtray",
      "buildsystem" : "cmake-ninja",
      "config-opts" : [
        "-DCMAKE_BUILD_TYPE=Release",
        "-DQT_PACKAGE_PREFIX:STRING='Qt6'",
        "-DKF_PACKAGE_PREFIX:STRING='KF6'",
        "-DBUILTIN_TRANSLATIONS:BOOL=ON",
        "-DBUILTIN_TRANSLATIONS_OF_QT:BOOL=OFF",
        "-DJS_PROVIDER=qml",
        "-DSYSTEMD_SUPPORT=ON",
        "-DNO_PLASMOID=ON",
        "-DNO_FILE_ITEM_ACTION_PLUGIN=ON",
        "-DNO_AUTOSTART_SETTINGS:BOOL=ON"
      ],
      "sources" : [
        {
          "url" : "https://github.com/Martchus/syncthingtray.git",
          "commit" : "d2aa3846f186ff44f9bca6408e9424d163c9194c",
          "x-checker-data" : {
            "type" : "git",
            "tag-pattern" : "^v([\\d.]+)$",
            "is-important" : true
          },
          "type" : "git"
        }
      ]
    }
  ],
  "cleanup" : [
    "/ForkAwesome",
    "/include",
    "/lib/cmake",
    "/lib/perl5",
    "/lib/pkgconfig",
    "/share/c++utilities",
    "/share/man",
    "/share/qtforkawesome",
    "/share/qtforkawesomeiconengine",
    "/share/qtquickforkawesome",
    "/share/qtutilities",
    "/share/syncthingconnector",
    "/share/syncthingmodel",
    "/share/syncthingwidgets",
    "*.cmake",
    "*.la",
    "*.a"
  ],
  "sdk-extensions" : [
    "org.freedesktop.Sdk.Extension.golang"
  ],
  "finish-args" : [
    "--device=dri",
    "--share=ipc",
    "--socket=fallback-x11",
    "--socket=wayland",
    "--share=network",
    "--filesystem=home",
    "--talk-name=org.kde.StatusNotifierWatcher",
    "--talk-name=org.freedesktop.Notifications",
    "--talk-name=com.canonical.AppMenu.Registrar",
    "--talk-name=org.freedesktop.systemd1"
  ],
  "rename-desktop-file" : "syncthingtray.desktop",
  "rename-icon" : "syncthingtray",
  "source-date-epoch" : 1321009871
}