### this file is sourced not run
PKGVER=1.12
PKGBUILD=1
PKGARCH=i686

# source: BLFS 7.5
TARBALL=libxcb-$PKGVER.tar.bz2
MD5SUM=28e552bd78bc1050b6b26ca1db0e5bb6
SRC_URL=http://xcb.freedesktop.org/dist/$TARBALL
BUNDLE=

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

### default pkg_download
### defaulg pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

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

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