# Template build file for 'xf86-input-wacom'.
pkgname=xf86-input-wacom
version=0.19.0
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="xorg-server-devel>=1.13.1 libXrandr-devel libXinerama-devel libXi-devel"
short_desc="Xorg Wacom tablet input driver"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://xorg.freedesktop.org"
license="MIT"
distfiles="${SOURCEFORGE_SITE}/linuxwacom/${pkgname}-${version}.tar.bz2"
checksum=a3d8f3ee2e8f896a577e67cb4fb36c384b1405c33c4b528268a06b2f73847bd2

post_install() {
	vinstall ${FILESDIR}/70-wacom.rules 644 usr/lib/udev/rules.d
}

xf86-input-wacom-devel_package() {
	short_desc="${short_desc} -- development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}

xf86-input-wacom_package() {
	depends="xserver-abi-input>=18<19"
	pkg_install() {
		vmove usr
	}
}
