# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=filezilla
pkgver=3.27.1
pkgrel=0
pkgdesc="FTP Client"
url="http://filezilla-project.org"
arch="all"
license="GPL2"
makedepends="libfilezilla-dev wxgtk-dev libidn-dev nettle-dev gnutls-dev
	pugixml-dev xdg-utils gtk+2.0-dev sqlite-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/project/filezilla/FileZilla_Client/$pkgver/FileZilla_${pkgver}_src.tar.bz2"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--without-dbus
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

check() {
	cd "$builddir"
	make check
}

sha512sums="ef07d91a0b38349cc2a1942d52afe1ae03760643028fcdac28f6523bea24498d6700d2d13d8c5bd5df933ff4e6a90df40bc399d6c0f0f2f7fdbe9b8b04381963  FileZilla_3.27.1_src.tar.bz2"