void-packages/srcpkgs/libxcb/template

37 lines
1.0 KiB
Bash

# Template file for 'libxcb'
pkgname=libxcb
version=1.16
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="André Cerqueira <acerqueira021@gmail.com>"
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=4348566aa0fbf196db5e0a576321c65966189210cb51328ea2bb2be39c711d71
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"
}
}