# SliTaz package receipt.

PACKAGE="xorg-xbacklight"
VERSION="1.2.3"
CATEGORY="x-window"
SHORT_DESC="utility for x-server to set the backlight level using the RandR"
MAINTAINER="jozee@slitaz.org"
SOURCE="xbacklight"
TARBALL="$SOURCE-$VERSION.tar.bz2"
DEPENDS="libxcb xcb-util xorg-libXrandr"
BUILD_DEPENDS="libxcb-dev xcb-util-dev xorg-libXrandr-dev"
WEB_SITE="http://xorg.freedesktop.org/"
WGET_URL="$WEB_SITE/releases/individual/app/$TARBALL"
TAGS="utility xorg power backlight"

# Rules to configure and make the package.ls sr	
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

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