# SliTaz package receipt.

PACKAGE="lyx"
VERSION="1.6.9"
CATEGORY="office"
SHORT_DESC="An advanced open-source document processor."
MAINTAINER="gokhlayeh@slitaz.org"
DEPENDS="qt4 python perl imagemagick aspell aiksaurus"
BUILD_DEPENDS="Qt4-dev"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.lyx.org"
WGET_URL="ftp://ftp.lyx.org/pub/lyx/stable/1.6.x/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --with-frontend=qt4 $CONFIGURE_ARGS &&
	make && make -j1 install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/share
	cp -a $_pkg/usr/bin $fs/usr
	cp -a $_pkg/usr/share/lyx $fs/usr/share
	rm -r $fs/usr/share/lyx/doc $fs/usr/share/lyx/examples
}