# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=xdotool
pkgver=3.20160805.1
pkgrel=0
pkgdesc="Simulate keyboard/mouse input"
url="https://github.com/jordansissel/xdotool"
arch="all"
license="BSD"
depends_dev="libx11-dev libxtst-dev libxinerama-dev libxkbcommon-dev"
makedepends="$depends_dev perl"
source="$pkgname-$pkgver.tar.gz::https://github.com/jordansissel/$pkgname/archive/v$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make WITHOUT_RPATH_FIX=1
}

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

md5sums="3b6f31082b18d141f2c3ebaf82141232  xdotool-3.20160805.1.tar.gz"
sha256sums="ddafca1239075c203769c17a5a184587731e56fbe0438c09d08f8af1704e117a  xdotool-3.20160805.1.tar.gz"
sha512sums="cf0b1c31e63a43759ff3f081f3b005dd9fe9cabd2f606d7d1238c7ea9c0526681f6ad7883c69ab9194d19a9584c3707f10306be1e826e5953da30838007dd471  xdotool-3.20160805.1.tar.gz"
