#Packager: Vasile Coman <kerd[at]slackware[dot]eu>

pkgname=filezilla
pkgver=3.4.0
pkgrel=1vc
source=("http://freefr.dl.sourceforge.net/project/filezilla/FileZilla_Client/$pkgver/FileZilla_3.4.0_src.tar.bz2")
sourcetemplate=http://people.salixos.org/kerd/$pkgname/$pkgver/
docs=("readme" "install" "copying" "ChangeLog" "authors" "todo")
url=http://filezilla-project.org/

slackdesc=\
(
#|-----handy-ruler----------------------------------------------|
"filezilla (the free FTP solution)"
"FileZilla is a fast and reliable cross-platform FTP, FTPS, and"
"SFTP client with lots of useful features and an intuitive user"
"interface."
"http://filezilla-project.org/"
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure 	--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--mandir=/usr/man \
		--disable-static \
		--with-tinyxml=builtin \
		--build=$arch-slackware-linux || return 1
	
	make || return 1
	make install DESTDIR=$startdir/pkg

	mkdir -p $startdir/pkg/usr/share/icons/hicolor/32x32/apps
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	cp $startdir/src/$pkgname-$pkgver/src/interface/resources/32x32/filezilla.png $startdir/pkg/usr/share/icons/hicolor/32x32/apps
	cp $startdir/src/$pkgname-$pkgver/src/interface/resources/48x48/filezilla.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps

	
}