# Maintainer: Natanael Copa pkgname=libevdev pkgver=1.4.4 pkgrel=0 pkgdesc="Kernel Evdev Device Wrapper Library" url="http://www.freedesktop.org/wiki/Software/libevdev" arch="all" license="MIT" depends="" depends_dev="" makedepends="$depends_dev python linux-headers" install="" subpackages="$pkgname-dev $pkgname-doc" source="http://www.freedesktop.org/software/libevdev/libevdev-$pkgver.tar.xz" _builddir="$srcdir"/libevdev-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="b66443bb664cfaf2ba7b3f8c238ea951 libevdev-1.4.4.tar.xz" sha256sums="ed9979369b6a6e28f5897d099538549ecffb2b7c00c1b717eb77c31d85bc45a9 libevdev-1.4.4.tar.xz" sha512sums="5170ce3e99588b3ce2f9d3580b2d2087b527eaf258ab69a9e8620e2c336d9fa54c36f75ba4b68a61b5ecd7c8123bb9adf538ba882ed353df08a54cd68906e210 libevdev-1.4.4.tar.xz"