# SliTaz package receipt.

PACKED_SIZE="24.0K"
UNPACKED_SIZE="72.0K"
PACKAGE="xorg-xcompmgr"
VERSION="1.1.8"
CATEGORY="x-window"
SHORT_DESC="X composite manager."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://www.x.org/wiki/"

SOURCE="xcompmgr"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WGET_URL="$XORG_MIRROR/app/$TARBALL"

DEPENDS="libxcb xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXdamage \
	xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXrender"
BUILD_DEPENDS="libxcb-dev xorg-libX11-dev xorg-libXau-dev 
	xorg-libXcomposite-dev xorg-libXdamage-dev 
	xorg-libXdmcp-dev xorg-libXext-dev xorg-libXfixes-dev 
	xorg-libXrender-dev"

HOST_ARCH="i486 arm"

current_version()
{
	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
	sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
	# 1.1.6: bugs.freedesktop.org/show_bug.cgi?id=46285
#	patch -Np0 -i $stuff/46285.diff

	./configure \
		$CONFIGURE_ARGS &&
	make &&
	make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr $fs/etc/xdg

	cp -r $install/usr/bin	$fs/usr
	cp -r $stuff/autostart	$fs/etc/xdg
}
