An error of the form
Run-time dependency goa-1.0 found: NO (tried pkgconfig and cmake)
means that the build is looking for a file named `goa-1.0.pc` (for `pkgconfig`) or `Findgoa-1.0.cmake` file (which isn’t what a CMake dependency would look like, but the build system can’t know that).
To find that on Lubuntu, install `apt-file`, update your `apt` indexes, then run
apt-file search goa-1.0.pc
This will reveal that you need to install `libgoa-1.0-dev`. For `json-glib-1.0`, the same process will show that you need to install `libjson-glib-dev`.
Install both packages and you should find that those build errors have been fixed.
For a program such as Déjà Dup which is packaged in Debian, you can quickly see the list of required build dependencies by looking at the `Build-Depends` entry in the `debian/control` file.