# Template file for 'ois'
pkgname=ois
version=1.4
revision=1
wrksrc="OIS-${version}"
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="libXaw-devel"
short_desc="Object oriented input system"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="Zlib"
homepage="https://wgois.github.io/OIS/"
distfiles="https://github.com/wgois/OIS/archive/v${version}.tar.gz"
checksum=aaa9289a0cc0bffbb03e894b1d10e65eac14572a2282d539afe48aec1ae35c75

pre_configure() {
	. bootstrap
}
post_install() {
	vlicense README.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.a
		vmove usr/lib/libOIS.so
	}
}
