# SliTaz package receipt.

PACKAGE="grisbi"
VERSION="0.6.0"
CATEGORY="office"
SHORT_DESC="Personnal bank manager"
MAINTAINER="erjo@slitaz.org"
DEPENDS="gtk+ xorg-libXdamage libofx libofx"
BUILD_DEPENDS="pkg-config glib gtk+ libxml2 gtk+-dev glib-dev libofx-dev opensp-dev"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.grisbi.org/index.fr.html"
WGET_URL="http://heanet.dl.sourceforge.net/sourceforge/grisbi/$TARBALL"
SUGGESTED="grisbi-plugins"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr \
		--with-plugins \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/share/grisbi/categories $fs/usr/share/applications
	
	cp -a $stuff/grisbi.desktop $fs/usr/share/applications
	cp -a $_pkg/usr/bin $fs/usr
	cp -a $_pkg/usr/share/pixmaps $fs/usr/share
	cp -a $_pkg/usr/share/mime-info $fs/usr/share
	cp -a $fs/usr/share/pixmaps/grisbi/grisbi.png $fs/usr/share/pixmaps 
	cp -a $_pkg/usr/share/grisbi/categories/fr* $fs/usr/share/grisbi/categories/
}