# Template file for 'libXi'
pkgname=libXi
version=1.8.2
revision=2
build_style=gnu-configure
configure_args="--enable-malloc0returnsnull"
hostmakedepends="pkg-config xmlto"
makedepends="xorgproto libXfixes-devel libXext-devel"
short_desc="X Input extension library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://gitlab.freedesktop.org/xorg/lib/libxi"
distfiles="${XORG_SITE}/lib/${pkgname}-${version}.tar.xz"
checksum=d0e0555e53d6e2114eabfa44226ba162d2708501a25e18d99cfb35c094c6c104

post_install() {
	vlicense COPYING
}

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