# Template file for 'xdotool'
pkgname=xdotool
version=3.20150503.1
revision=2
build_style=gnu-makefile
hostmakedepends="perl pkg-config"
makedepends="libXtst-devel libXinerama-devel libxkbcommon-devel"
make_build_target="all"
make_install_args="INSTALLMAN=$DESTDIR/usr/share/man"
short_desc="Command-line X11 automation tool"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="https://github.com/jordansissel/xdotool"
distfiles="https://github.com/jordansissel/${pkgname}/archive/v${version}.tar.gz"
checksum=b097ef0e3897d1a24e3f45f0faed58329742d3d9434b9b46eb97eb1040f999bf

xdotool-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/*.so
	}
}

post_install() {
	vlicense COPYRIGHT
}
