# Template file for 'mate-desktop'
pkgname=mate-desktop
version=1.28.2
revision=1
build_style=meson
build_helper="gir"
configure_args="$(vopt_bool gir introspection) -Dstartup-notification=enabled"
hostmakedepends="pkg-config gettext glib-devel librsvg-utils iso-codes"
makedepends="gtk+3-devel dconf-devel libXrandr-devel startup-notification-devel
 iso-codes gdk-pixbuf-devel libglib-devel"
depends="dconf hicolor-icon-theme dejavu-fonts-ttf"
short_desc="Library with common API for various MATE modules"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://mate-desktop.org"
changelog="https://raw.githubusercontent.com/mate-desktop/mate-desktop/master/NEWS"
distfiles="https://pub.mate-desktop.org/releases/${version%.*}/mate-desktop-${version}.tar.xz"
# distfiles="https://github.com/mate-desktop/mate-desktop/releases/download/v${version}/mate-desktop-${version}.tar.xz"
checksum=32bb4b792014b391c1e1b8ae9c18a82b4d447650984b4cba7d28e95564964aa2
make_check=no # only abi check, failure

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

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