# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=xdotool
pkgver=3.20160805.1
pkgrel=0
pkgdesc="Tool to simulate keyboard/mouse input"
url="https://www.semicomplete.com/projects/xdotool/"
arch="all"
options="!check"  # Requires running X11 server
license="BSD-3-Clause"
depends=""
depends_dev="libx11-dev libxtst-dev libxinerama-dev libxkbcommon-dev"
#checkdepends="xvfb ruby-minitest cmd:which lsof xdpyinfo xterm xwininfo"
makedepends="$depends_dev perl"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/jordansissel/xdotool/releases/download/v$pkgver/xdotool-$pkgver.tar.gz"

build() {
	make WITHOUT_RPATH_FIX=1
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" PREFIX="/usr" INSTALLMAN="/usr/share/man" install
}

sha512sums="e27b1029ee954ea17643ed489a00a1856e5687b03772c0f10a8e50cde3c3c957b57a3ba9890005474a744a228ef4827a83770d6890479c37a1f98f4fd7b1ff6c  xdotool-3.20160805.1.tar.gz"