# SliTaz package receipt.

PACKAGE="perl-http-daemon"
VERSION="6.01"
CATEGORY="development"
SHORT_DESC="A Perl simple http server class"
MAINTAINER="erjo@slitaz.org"
SOURCE="HTTP-Daemon"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://search.cpan.org/dist/libwww-perl/"
WGET_URL="http://www.cpan.org/authors/id/G/GA/GAAS/$TARBALL"

DEPENDS="perl perl-http-date perl-http-message perl-lwp-mediatypes"
BUILD_DEPENDS="perl $DEPENDS"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	perl Makefile.PL &&	make &&	make DESTDIR=$DESTDIR install
	
}

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