# Template file for 'libtsm'
pkgname=libtsm
version=4.0.2
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="libxkbcommon-devel"
short_desc="Terminal-emulator State Machine"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT, LGPL-2.1-or-later, BSD-2-Clause"
homepage="https://github.com/Aetf/libtsm"
distfiles="https://github.com/Aetf/libtsm/archive/refs/tags/v${version}.tar.gz"
checksum=ce51be564872d3e6a35fadab1f74b8804f72d8a92c0f378ca384155134d154e5

post_install() {
	vlicense COPYING
}

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