# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xf86-input-evdev
pkgver=2.10.6
pkgrel=0
pkgdesc="X.Org generic input driver"
url="https://www.X.Org/"
arch="all"
license="MIT"
depends=""
makedepends="libxkbfile-dev xorg-server-dev libxi-dev libxrandr-dev
	eudev-dev mtdev-dev libevdev-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="https://www.X.Org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"

build() {
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="560b0a6491d50a46913a5890a35c0367e59f550670993493bd9712d712a9747ddaa6fe5086daabf2fcafa24b0159383787eb273da4a2a60c089bfc0a77ad2ad1  xf86-input-evdev-2.10.6.tar.bz2"