# Template file for 'ois'
pkgname=ois
version=1.5.1
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="libXaw-devel"
short_desc="Object oriented input system"
maintainer="Orphaned <orphan@voidlinux.org>"
license="zlib-acknowledgement"
homepage="https://wgois.github.io/OIS/"
distfiles="https://github.com/wgois/OIS/archive/v${version}.tar.gz"
checksum=614f6ef6d69cf6d84f1b50efff46a6c1acce426933e5f0dcf29862ea8332af73

post_install() {
	vlicense LICENSE.md
}

ois-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/lib/libOIS.so
		# Compatibility with previous versions
		ln -srv ${PKGDESTDIR}/usr/include/{ois,OIS}
	}
}
