# Maintainer: Miles Alan <m@milesalan.com>
pkgname=keynav
pkgver=0_git20180820
_gitrev=78f9e076a5618aba43b030fbb9344c415c30c1e5
pkgrel=1
pkgdesc="Quick way to use cursor via the keyboard"
url="https://www.semicomplete.com/projects/keynav/"
arch="all"
license="BSD-3-Clause"
depends="xorg-server"
makedepends="
	cairo-dev
	glib-dev
	libxinerama-dev
	libxrandr-dev
	perl
	xdotool-dev
	"
checkdepends="xvfb"
subpackages="$pkgname-doc"
source="https://github.com/jordansissel/keynav/archive/$_gitrev/keynav-$_gitrev.tar.gz"
builddir="$srcdir/keynav-$_gitrev"

build() {
	make
	make keynav.1
}

check() {
	./test.sh
}

package() {
	install -Dm755 keynav -t "$pkgdir"/usr/bin/
	install -Dm644 ./*.1 -t "$pkgdir"/usr/share/man/man1/

	install -Dm644 keynavrc examples/keynavrc.jordan \
		-t "$pkgdir"/usr/share/doc/$pkgname/examples/
}

sha512sums="
5e0e3c4cf3b89a2ffecfc662d379864f18cfa0f9117564cc1f551757dc46e5a4684c3fea0891ae39da872ece9ef44b8b81fa51f0843457d4895db8517d7bd094  keynav-78f9e076a5618aba43b030fbb9344c415c30c1e5.tar.gz
"
