# SliTaz package receipt.

PACKAGE="filezilla"
VERSION="3.5.1"
CATEGORY="network"
SHORT_DESC="FTP Client"
MAINTAINER="erjo@slitaz.org"
SOURCE="FileZilla"
TARBALL="${SOURCE}_${VERSION}_src.tar.bz2"
WEB_SITE="http://filezilla-project.org/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
TAGS="ftp client"

DEPENDS="wxWidgets gnutls libidn xorg-libXxf86vm libtasn1 sqlite"
BUILD_DEPENDS="xdg-utils gettext wxWidgets-dev gnutls-dev libidn-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		--with-tinyxml=builtin \
		--without-dbus \
		$CONFIGURE_ARGS &&
	make && make DESTDIR=$DESTDIR 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/filezilla $fs/usr/share
	
	rm -rf $fs/usr/share/fileszilla/docs
}