# Template file for 'colord-gtk'
pkgname=colord-gtk
version=0.3.0
revision=1
build_style=meson
build_helper=gir
configure_args="-Dtests=false $(vopt_bool vala vapi) $(vopt_bool docs docs)
 $(vopt_bool man man)"
hostmakedepends="pkg-config gettext glib-devel libxslt
 $(vopt_if docs gtk-doc) $(vopt_if vala vala-devel)
 $(vopt_if man docbook-xsl-ns)"
makedepends="colord-devel gtk+3-devel gtk4-devel"
short_desc="GTK support library for colord"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/hughsie/colord-gtk"
changelog="https://raw.githubusercontent.com/hughsie/colord-gtk/main/NEWS"
distfiles="${FREEDESKTOP_SITE}/colord/releases/${pkgname}-${version}.tar.xz"
checksum=b9466656d66d9a6ffbc2dd04fa91c8f6af516bf9efaacb69744eec0f56f3c1d0

build_options="vala docs man"
build_options_default="vala man docs"
desc_option_docs="Generate documentation"
desc_option_man="Generate man pages"

colord-gtk-devel_package() {
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
		vmove usr/share/gir-1.0
		if [ "$build_option_vala" ]; then
			vmove usr/share/vala
		fi
		if [ "$build_option_docs" ]; then
			vmove usr/share/gtk-doc
		fi
	}
}
