# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-input-evdev
pkgver=2.10.5
pkgrel=0
pkgdesc="X.org evdev input driver"
url="http://xorg.freedesktop.org/"
arch="all"
license="MIT"
subpackages="$pkgname-doc $pkgname-dev"
depends=""
makedepends="libxkbfile-dev xorg-server-dev libxi-dev libxrandr-dev
	eudev-dev mtdev-dev libevdev-dev"
source="http://www.x.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"

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

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

sha512sums="4362c1d12e91f25789722b1cc1b624530fd67f0d061d4c4e204af9f5024df0c9e20b73c87be15051f581a2a178f07f380215b172aba4c67db8805b4eeb82819a  xf86-input-evdev-2.10.5.tar.bz2"
