# Template file for 'libXi'
pkgname=libXi
version=1.8.3
revision=1
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/libXi-${version}.tar.xz"
checksum=7ad60056f01af4f786cfe93b3a7707447711626fc8da2637bec71a90409babe5

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"
	}
}
