# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xcb-util
pkgver=0.4.0
pkgrel=1
pkgdesc="Utility libraries for X C-language Binding"
url="http://xcb.freedesktop.org"
arch="all"
license="GPL"
depends_dev="libxcb-dev util-macros"
makedepends="$depends_dev m4 gperf"
checkdepends="check-dev"
subpackages="$pkgname-dev"
source="http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="e60aaa6f582eacd05896c5fd7c8417938318a1288146f3a5b339f77eed24e211c6099963f8813daa621c94173d2934228936b491c0ed79b09a8a67d835867d0e  xcb-util-0.4.0.tar.bz2"
