### this file is sourced not run
PKGVER=1.13.1
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS svn 2016-05-26
TARBALL=libxcb-$PKGVER.tar.bz2
MD5SUM=f33cdfc67346f7217a9326c0d8679975
SRC_URL=http://xcb.freedesktop.org/dist/$TARBALL
BUNDLE=

SLACKREQ='libXau libXdmcp'
SLACKDESC="libxcb: libxcb $PKGVER (X11 interface library)  
libxcb:  
libxcb: The libxcb package provides an interface to the X Window System 
libxcb: protocol, which replaces the current Xlib interface. Xlib can also use 
libxcb: XCB as a transport layer, allowing software to make requests and 
libxcb: receive responses with both.  
libxcb: 
libxcb: 
libxcb: 
libxcb: 
libxcb:
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/libxcb* &&
	# this bad commit causes xcb crash with 'xcb out of sequence' in libX11 xcb_io.c
	patch -Rp1 -i ../pkg/bad-commit-f830eb93c9.patch 
}

### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$XORG_CONFIG --docdir=/usr/share/doc/libxcb-$PKGVER \
            --enable-xinput --enable-xkb --enable-ge"

	cd /tmp/libxcb*
#	sed -e "s/pthread-stubs//" -i configure.ac &&
#	autoreconf -fiv  &&	
	pkg_build_autoconf && pkg_build_slackdesc
}
