# SliTaz package receipt.

PACKAGE="xorg-luit"
VERSION="1.1.1"
CATEGORY="x-window"
SHORT_DESC="Convert terminal i/o from legacy encodings to UTF-8"
MAINTAINER="erjo@slitaz.org"
DEPENDS="xorg-libfontenc"
BUILD_DEPENDS="xorg-util-macros xorg-libX11-dev xorg-libfontenc-dev"
SOURCE="luit"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="http://xorg.freedesktop.org/"
WGET_URL="http://xorg.freedesktop.org/archive/individual/app/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	sed -i -e "/D_XOPEN/s/5/6/" configure

	./configure --prefix=/usr \
		--infodir=/usr/share/info \
		--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
}