# Maintainer: Natanael Copa pkgname=libevdev pkgver=1.5.2 pkgrel=0 pkgdesc="Kernel Evdev Device Wrapper Library" url="https://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="https://freedesktop.org/software/${pkgname}/${pkgname}-${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="96ad6edb5ce5c4428f1b183cc180ff8c libevdev-1.5.2.tar.xz" sha256sums="5ee2163656a61f5703cb5c08a05c9471ffb7b640bfbe2c55194ea50d908f629b libevdev-1.5.2.tar.xz" sha512sums="7f07d2eb9feb3e4bd5ae512fa7000dd8d1ad8d5334fff9440262ab45aaec95ff311e3f9c9b1711259700b3f35613b192f5a2c8ac90fcb6842390bfd861e3e30c libevdev-1.5.2.tar.xz"