### this file is sourced not run
PKGVER=1.15
PKGBUILD=2 # drop bad commit patch
PKGARCH=i686

# source: BLFS 11.3
TARBALL=libxcb-$PKGVER.tar.xz
MD5SUM=39c0fc337e738ad6c908e7cce90957d0
SRC_URL=https://xorg.freedesktop.org/archive/individual/lib/$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
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/libxcb* &&
	# patch
	true
}

### 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-xprint --enable-ge --enable-xevie --without-doxygen"

	pkg_build_autoconf && pkg_build_slackdesc
}
