# SliTaz package receipt.

PACKAGE="claws-mail"
VERSION="3.7.10"
CATEGORY="network"
SHORT_DESC="The user-firendly, lightweight and fast email client"
MAINTAINER="erjo@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.claws-mail.org/index.php"
WGET_URL="$SF_MIRROR/sylpheed-claws/$TARBALL"
TAGS="email client"

DEPENDS="libetpan libdb libsasl libcurl gpgme enchant dbus dbus-glib expat \
libgnutls gtk+ libgcrypt startup-notification xorg-libICE xorg-libSM \
xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdmcp \
xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrandr xorg-libXrender \
xorg-libXdamage gcc-lib-base libtasn1"
BUILD_DEPENDS="libetpan-dev curl-dev gpgme-dev glib-dev libgpg-error-dev \
enchant libidn-dev db-dev expat-dev cyrus-sasl-dev xcb-util-dev gtk+-dev \
pkg-config libassuan libassuan-dev xorg-dev gnutls-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
	 	--disable-ldap \
	 	--disable-jpilot \
	 	--disable-dillo-viewer-plugin \
		$CONFIGURE_ARGS &&
	make && make install
}

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