# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=xf86-input-wacom
pkgver=0.36.1
pkgrel=0
pkgdesc="X.org Wacom tablet input driver"
url="https://github.com/linuxwacom/xf86-input-wacom"
arch="all"
license="GPL-2.0-or-later"
makedepends="xorg-server-dev libxext-dev libxi-dev libxrandr-dev
	libxinerama-dev eudev-dev"
checkdepends="bash findutils"
subpackages="$pkgname-dev $pkgname-doc"
source="$url/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="2618bb53f4d6ed4166cd738022efcd3f35b31e27b04b8293834a1650131f2cbe9e1f11594bbcfb309861360311ae68dfb179d86d27fcb57033847a7b26d6e832  xf86-input-wacom-0.36.1.tar.bz2"
