# SliTaz package receipt.

PACKED_SIZE="28.0K"
UNPACKED_SIZE="68.0K"
PACKAGE="lxrandr"
VERSION="0.3.1"
CATEGORY="utilities"
SHORT_DESC="LXDE monitor configuration tool"
MAINTAINER="gokhlayeh@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="http://lxde.org"
WGET_URL="$SF_MIRROR/lxde/$TARBALL"
TAGS="LXDE"
HOST_ARCH="i486 arm"

DEPENDS="gtk+ xorg-xrandr"
BUILD_DEPENDS="gtk+-dev xorg-libXrandr-dev"

# Rules to configure and make the package.
compile_rules()
{
	# Fix sources.
	echo "Icon=video-display" >> data/lxrandr.desktop.in 
	touch po/stamp-it 
	./configure \
		$CONFIGURE_ARGS &&
	make && make install
}

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

	# Remove man & locales
	rm -rf $fs/usr/share/man
	rm -rf $fs/usr/share/locale

	sed -i 's|^Icon=.*$|Icon=preferences-desktop-display|' \
		$fs/usr/share/applications/lxrandr.desktop
}
