# Template file for 'kbdd'
pkgname=kbdd
version=0.7.1
revision=1
build_style=gnu-configure
build_options="dbus"
build_options_default="dbus"
configure_args="--enable-dbus=$(vopt_if dbus yes no)"
hostmakedepends="automake libtool pkg-config"
makedepends="libX11-devel glib-devel $(vopt_if dbus dbus-glib-devel)"
short_desc="Simple daemon and library to make per window layout using XKB"
maintainer="SolitudeSF <solitudesf@protonmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/qnikst/kbdd"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=17b3ee6054e86f9d54e70023582061f287a14a96bd8841a99b61921f3a3b165a

if [ -n "$CROSS_BUILD" ]; then
	hostmakedepends+=" glib-devel $(vopt_if dbus dbus-glib-devel)"
fi

pre_configure() {
	libtoolize --force
	aclocal
	autoheader
	automake --force-missing --add-missing
	autoreconf -i
}
