# Template file for 'libayatana-appindicator'
pkgname=libayatana-appindicator
version=0.5.91
revision=1
build_helper="gir"
build_style=cmake
configure_args="-DENABLE_BINDINGS_MONO=OFF -DENABLE_BINDINGS_VALA=$(vopt_if vala ON OFF)"
hostmakedepends="pkg-config gobject-introspection $(vopt_if vala vala)"
makedepends="glib-devel gtk+3-devel libdbusmenu-gtk3-devel libayatana-indicator-devel"
short_desc="Ayatana Application Indicators Shared Library"
maintainer="tibequadorian <tibequadorian@posteo.de>"
license="LGPL-3.0-or-later"
homepage="https://ayatanaindicators.github.io/"
distfiles="https://github.com/AyatanaIndicators/libayatana-appindicator/archive/${version}.tar.gz"
checksum=52eb5d0c0de07177833e50fbaee592dcb3939e96c6b789921e2a8caf40a1ed26

build_options="vala"
build_options_default="vala"

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