# Template file for 'garcon'
pkgname=garcon
version=4.18.2
revision=1
build_style=gnu-configure
build_helper=gir
configure_args="--disable-static --with-locales-dir=/usr/share/locale
 --enable-introspection=$(vopt_if gir yes no)"
hostmakedepends="pkg-config intltool gettext-devel glib-devel"
makedepends="libglib-devel libxfce4ui-devel libxfce4util-devel gtk+3-devel"
conf_files="/etc/xdg/menus/xfce-applications.menu"
short_desc="Glib/GIO freedesktop.org compliant menu implementation"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="LGPL-2.0-or-later"
homepage="https://xfce.org/"
changelog="https://gitlab.xfce.org/xfce/garcon/-/raw/master/NEWS"
distfiles="https://archive.xfce.org/src/xfce/garcon/${version%.*}/${pkgname}-${version}.tar.bz2"
checksum=1b8c9292e131968fbfc8987bbc62c5ba47186dd45ef4e47c5d8c5088bb2d434d

build_options="gir"
build_options_default="gir"

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