app=geocode-glib
version=3.26.2
build=1sml
homepage="https://gitlab.gnome.org/GNOME/geocode-glib"
download="https://gitlab.gnome.org/GNOME/geocode-glib/-/archive/3.26.2/geocode-glib-3.26.2.tar.bz2"
desc="Library for geocoding aka finding latitude and longitude from address and reverse"
requires="json-glib libsoup"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  mkdir -p smbuild && cd smbuild
  meson .. \
    --prefix="/" \
    -Denable-gtk-doc=false \
    -Denable-introspection=false

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
b3ef81fac6959f6c4725ca721125cdafbbec69233f321872e17f9035266ed7616018ef54a9082fbd0a83395d18c664144cfe3b431d63744be433f058071cd435  geocode-glib-3.26.2.tar.xz
"
