# SliTaz package receipt.

PACKED_SIZE="20.0K"
UNPACKED_SIZE="44.0K"
PACKAGE="xcb-util"
VERSION="0.3.8"
CATEGORY="x-window"
SHORT_DESC="XCB Utilites"
MAINTAINER="mallory@sweetpeople.org"
LICENSE="MIT"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://xcb.freedesktop.org/"
WGET_URL="${WEB_SITE}dist/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="libxcb"
BUILD_DEPENDS="libxcb-dev gperf"

# Handle cross compilation
case "$ARCH" in
	arm*) BUILD_DEPENDS="libxcb-dev xorg-libXdmcp-dev" ;;
esac

# Rules to configure and make the package.
compile_rules()
{
	./configure \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		$CONFIGURE_ARGS &&
	make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib
	cp -a $install/usr/lib/*.so* $fs/usr/lib
}
