# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=evtest
pkgver=1.35
pkgrel=1
pkgdesc="monitor input layer events"
options="!check" # No testsuite
url="https://cgit.freedesktop.org/evtest/"
arch="all !ppc64le"
license="GPL-2.0"
makedepends="linux-headers autoconf automake libtool"
source="https://gitlab.freedesktop.org/libevdev/evtest/-/archive/evtest-1.35/evtest-evtest-$pkgver.tar.gz
	fix-ppc64le-musl.patch
	"
builddir="$srcdir"/evtest-evtest-$pkgver

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="
617757cc0b9e5c3d0236453c9590a277a8f63ae7780dd565bce4a8ca9e47912c0fe9404fb61b04bf440fe8c9afaff99d8b1812672f83c47c4027330436831b5b  evtest-evtest-1.35.tar.gz
d7df35a135dcd83a4631e121c355c445644862608728128948ecf2c3cea7ff99d1e858b89f827f376c25cf59a644fee7f60378816bc8503314b8a9fd4c88c4e3  fix-ppc64le-musl.patch
"
