# SliTaz package receipt.

PACKAGE="perl-texi2html"
SOURCE="texi2html"
VERSION="1.82"
CATEGORY="utilities"
SHORT_DESC="Converts texinfo documents to HTML."
MAINTAINER="gokhlayeh@slitaz.org"
DEPENDS="perl"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="http://www.nongnu.org/texi2html/"
WGET_URL="http://download.savannah.gnu.org/releases/$SOURCE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure $CONFIGURE_ARGS && make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/share
	cp -a $_pkg/usr/bin $fs/usr
	cp -a $_pkg/usr/share/texi2html $fs/usr/share
	sed -i 's|bin/env perl|bin/perl|' $fs/usr/bin/texi2html
}