# Template file for 'libspnav'
pkgname=libspnav
version=1.2
revision=1
build_style=gnu-configure
makedepends="libX11-devel"
short_desc="Open source alternative to 3DConnextion drivers"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://spacenav.sourceforge.net/"
changelog="https://github.com/FreeSpacenav/libspnav/releases"
distfiles="https://github.com/FreeSpacenav/libspnav/archive/refs/tags/v${version}.tar.gz"
checksum=e675a2476bd407b8d97a33f93c6651ad3ecdfd422916f260bd620f2aec7ca45f

post_install() {
	vlicense LICENSE
}

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