# SliTaz package receipt.

PACKAGE="rssyl"
VERSION="0.31"
CATEGORY="network"
SHORT_DESC="RSS feed aggregator for Claws Mail."
MAINTAINER="erjo@slitaz.org"
DEPENDS="claws-mail curl libxml2 expat gtk+ xorg-libX11 xorg-libXau \
xorg-libXcomposite xorg-libXcursor xorg-libXdmcp xorg-libXext \
xorg-libXfixes xorg-libXinerama xorg-libXrandr xorg-libXrender xorg-libXdamage"
BUILD_DEPENDS="claws-mail-dev curl-dev gnutls-dev"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.claws-mail.org/plugin.php?plugin=rssyl"
WGET_URL="http://www.claws-mail.org/downloads/plugins/$TARBALL"
SUGGESTED="gtkhtml2viewer"
TAGS="rss newsfeed"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./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/lib/claws-mail/plugins \
		$fs/usr/share/locale
		
	cp -a $_pkg/usr/lib/claws-mail/plugins/*.so* $fs/usr/lib/claws-mail/plugins/
	cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
}