# Template file for 'libxcb'
pkgname=libxcb
version=1.17.0
revision=1
build_style=gnu-configure
configure_args="--disable-build-docs --enable-xinput --enable-xkb"
hostmakedepends="libtool pkg-config xorg-util-macros xcb-proto"
makedepends="libXdmcp-devel libXau-devel"
short_desc="X protocol C-language Binding"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://gitlab.freedesktop.org/xorg/lib/libxcb"
changelog="https://gitlab.freedesktop.org/xorg/lib/libxcb/-/raw/master/NEWS"
distfiles="https://xorg.freedesktop.org/archive/individual/lib/libxcb-${version}.tar.xz"
checksum=599ebf9996710fea71622e6e184f3a8ad5b43d0e5fa8c4e407123c88a59a6d55

if [ "$CROSS_BUILD" ]; then
	makedepends+=" xcb-proto"
fi

post_install() {
	vlicense COPYING
}

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