# Template file for 'libevdev'
pkgname=libevdev
version=1.13.4
revision=1
build_style=gnu-configure
configure_args="--disable-gcov"
hostmakedepends="pkg-config python3"
checkdepends="check-devel"
short_desc="Wrapper library for evdev devices"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://www.freedesktop.org/wiki/Software/libevdev/"
distfiles="${FREEDESKTOP_SITE}/libevdev/libevdev-${version}.tar.xz"
checksum=f00ab8d42ad8b905296fab67e13b871f1a424839331516642100f82ad88127cd

post_install() {
	vlicense COPYING
}

libevdev-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}-${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/*.a
		vmove usr/lib/*.so
		vmove usr/lib/pkgconfig
		vmove usr/share/man/man3
	}
}

libevdev-tools_package() {
	short_desc+=" - tools"
	depends="${sourcepkg}-${version}_${revision}"
	pkg_install() {
		vmove usr/bin
		vmove usr/share/man/man1
	}
}
