# Template file for 'tslib'
pkgname=tslib
version=1.24
revision=1
build_style=cmake
short_desc="Touchscreen access library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-only"
homepage="https://github.com/kergoth/tslib"
changelog="https://raw.githubusercontent.com/libts/tslib/refs/heads/master/NEWS"
distfiles="https://github.com/kergoth/tslib/releases/download/${version}/tslib-${version}.tar.xz"
checksum=58d9941ffaa269c399f00d0d308184c96087f7acf69aa8e3c6645e852f993ba2

tslib-tools_package() {
	short_desc+=" - command line tools"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/bin
	}
}

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