# SliTaz package receipt.

PACKAGE="goffice"
VERSION="0.8.17"
CATEGORY="x-window"
SHORT_DESC="GOffice is a library of document-centric objects and utilities."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="http://freshmeat.net/projects/goffice/"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"

DEPENDS="gtk+ libgsf libglade libart_lgpl xorg-libXdamage"
BUILD_DEPENDS="gtk+-dev libxml2-dev libgsf libgsf-dev libglade-dev intltool \
expat-dev bzip2-dev librsvg-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--with-html-dir=/usr/share/doc \
		--disable-static \
		$CONFIGURE_ARGS &&
	make &&	make install
}

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