# Template file for 'geocode-glib-libsoup2'
# keep in sync with geocode-glib
pkgname=geocode-glib-libsoup2
version=3.26.4
revision=1
build_style=meson
build_helper="gir"
configure_args="-Denable-gtk-doc=false $(vopt_bool gir enable-introspection)
 -Denable-installed-tests=false -Dsoup2=true"
hostmakedepends="pkg-config glib-devel"
makedepends="json-glib-devel libsoup-gnome-devel"
depends="geocode-glib-common"
short_desc="GLib library for geocoding and reverse geocoding"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://developer.gnome.org/geocode-glib"
distfiles="${GNOME_SITE}/geocode-glib/${version%.*}/geocode-glib-${version}.tar.xz"
checksum=2d9a6826d158470449a173871221596da0f83ebdcff98b90c7049089056a37aa
make_check=no # expects installed locales

# Package build options
build_options="gir"
build_options_default="gir"

post_install() {
	rm -r ${DESTDIR}/usr/share/icons
}

geocode-glib-libsoup2-devel_package() {
	depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
		if [ "$build_option_gir" ]; then
			vmove usr/share/gir-1.0
		fi
	}
}
