app=geoclue
version=2.5.7
build=1sml
homepage="https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home"
download="https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/2.5.7/geoclue-2.5.7.tar.bz2"
desc="D-Bus service for providing location information"
requires="glib gobject-introspection"

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

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

  mkdir smbuild && cd smbuild
  meson .. \
    --prefix="/" \
    -D3g-source=false \
    -Dcdma-source=false \
    -Dmodem-gps-source=false \
    -Ddbus-srv-user=geoclue \
    -Dgtk-doc=false \
    -Dintrospection=false

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING* $pkgdocs/
  mv $pkg/etc/geoclue/geoclue.conf $pkg/etc/geoclue/geoclue.conf.new
  
  mkfinalpkg
}

sha512sums="
8d4f68dffe85bfca2146f093193bcc80e720556904baae25c2e9bc4cb072db4aeba29b1177411e0490ce3a13e78a6f4818f91a953c8b06d7890b5509ab02d956  geoclue-2.5.7.tar.lz
"
