# Template file for 'libXinerama'
pkgname=libXinerama
version=1.1.6
revision=1
build_style=gnu-configure
configure_args="--enable-malloc0returnsnull"
hostmakedepends="pkg-config"
makedepends="xorgproto libXext-devel"
short_desc="X PanoramiX extension library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://www.x.org/"
distfiles="${XORG_SITE}/lib/libXinerama-${version}.tar.xz"
checksum=d00fc1599c303dc5cbc122b8068bdc7405d6fcb19060f4597fc51bd3a8be51d7

post_install() {
	vlicense COPYING
}

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