# SliTaz package receipt.

PACKAGE="pmail"
VERSION="0.9.16"
CATEGORY="network"
SHORT_DESC="Mail transfer client based on the protocols of POP3 and SMTP."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.ibiblio.org/pub/Linux/system/mail/pop/"
WGET_URL="${WEB_SITE}$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	sed -i  -e 's|BINDIR = @prefix@/bin|BINDIR = _pkg/usr/bin|' \
		-e 's|MANDIR = @prefix@/man/man1|MANDIR = _pkg/usr/man/man1|' \
		Makefile.in
	mkdir -p _pkg/usr/bin _pkg/usr/man/man1
	./configure --prefix=/usr --infodir=/usr/share/info \
	--mandir=/usr/share/man $CONFIGURE_ARGS &&
	make -j 1 &&
	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
}