# Description: Geçerli Xlib arabirimini değiştiren X Pencere Sistem protokolüne arabirim.
# URL: http://xcb.freedesktop.org
# Packager: milisarge
# Depends on: xcb-proto xorg-libxdmcp xorg-libxau libxslt xorg-util-macros

name=libxcb
version=1.12
release=2

source=(http://xcb.freedesktop.org/dist/$name-$version.tar.bz2
        libxcb-1.1-no-pthread-stubs.patch
        python-35x-fixes.patch)

build() {
cd $name-$version
patch -Np1 -i ../libxcb-1.1-no-pthread-stubs.patch
patch -Np1 -i ../python-35x-fixes.patch

autoreconf -vfi

./configure --prefix=/usr \
	        --sysconfdir=/etc \
	        --localstatedir=/var \
	        --docdir='${datadir}'/doc/libxcb-$version \
	        --enable-xinput \
            --enable-xkb \
            --disable-static
make
make DESTDIR=$PKG install
}
