# Template file for 'ibus-anthy'
pkgname=ibus-anthy
version=1.5.9
revision=1
build_style=gnu-configure
configure_args="--libexec=/usr/lib/ibus $(vopt_enable gir introspection)"
hostmakedepends="pkg-config intltool automake gettext-devel libtool swig $(vopt_if gir gobject-introspection)"
makedepends="python-gobject-devel anthy-devel ibus-devel"
depends="ibus gtk-update-icon-cache python-gobject"
short_desc="Japanese input method Anthy IMEngine for IBus Framework"
maintainer="7185 <7185@free.fr>"
license="LGPL-2.1"
homepage="https://github.com/ibus/ibus/wiki"
distfiles="https://github.com/ibus/${pkgname}/archive/${version}.tar.gz"
checksum=b06657b5c8fb73f40260d254ad80e8c6c55355b16fe799821096374791172deb

# Package build options
build_options="gir"

# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
	build_options_default="gir"
fi

pre_configure() {
	autoreconf -fi
	intltoolize -f
}
