# SliTaz package receipt.

PACKAGE="xcb-util-renderutil"
VERSION="0.3.9"
CATEGORY="x-window"
TAGS="Xorg"
SHORT_DESC="Convenience functions for the Render extension."
MAINTAINER="maintainer@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://xcb.freedesktop.org/"
LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/xcb-util-renderutil.html"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="$XORG_MIRROR/xcb/$TARBALL"
TARBALL_SHA1="cb533b1d039f833f070e7d6398c221a31d30d5e2"

BUILD_DEPENDS="libxcb-dev"

DEPENDS="libxcb"

# What is the latest version available today?
current_version()
{
	wget -O - ${WGET_URL%/*} 2>/dev/null | \
	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
	./configure			\
		--disable-static	\
		$CONFIGURE_ARGS &&
	make &&
	make 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
}