# Template file for 'libcloudproviders'
pkgname=libcloudproviders
version=0.3.5
revision=1
build_style=meson
build_helper="gir"
configure_args="$(vopt_bool gir introspection) $(vopt_bool gir vapigen)"
hostmakedepends="pkg-config glib-devel $(vopt_if gir 'vala-devel')"
makedepends="libglib-devel"
short_desc="DBus API for cloud storage sync clients to expose their services"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-3.0-or-later"
homepage="https://gitlab.gnome.org/World/libcloudproviders"
distfiles="${homepage}/-/archive/${version}/libcloudproviders-${version}.tar.gz"
checksum=5642fe3d89322e79bff919e828dd3ad4e109ccfaadfc2f9a87fa40694ed08bee

build_options="gir"
build_options_default="gir"

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